Forum Moderators: phranque
When we copy the programname file to one of our subdomains and this same code to the .htaccess file of the subdomain it does not work.
Does anyone know what we need to do differently?
Thanks,
Eric
If it is easier to just modify this entry in the root directory .htaccess file then we can do that. I'm just not sure of how to change it so that it looks at files in the subdomain instead of the root dir.
Domains cease to exist at the boundary between the Web and your server's filesysystem. After the config file is processed and the server passes a request into the filesystem, domains and subdomains cease to have any meaning. And that may be a clue here.
You might try 'rooting' your substitution path like this:
RewriteRule ^(SEO-Name)-(.*).html$ /sudomain-subdirectory-path/programname.php?c=$2 [L]
or look into using the RewriteBase directive.
I can't offer much more detail, because
> it does not work
doesn't really tell us much.
If you got an error, examine your server error log and server access log; they may tell you what is wrong.
Jim