Forum Moderators: phranque
I have a .pl page that creates a directory index...
[mysite.com...]
I'm trying to rewrite it to appear like this...
[subdomain.subdomain.mysite.com...]
Here is what I have...
rewriteCond %{HTTP_HOST} ^www.mysite.com/cgi-bin/tree/NM_123\.pl
rewriteRule (.*) [subdomain.subdomain.mysite.com...] [R=301,L]
I added that to .htaccess but it's not working.
Are there different rules for files inside cgi-bin?
Start here [webmasterworld.com].
For more information, see the tutorials in the Apache forum section of the WebmasterWorld library [webmasterworld.com].
Jim