Forum Moderators: phranque
I am not very comfortable with .htaccess, please help.
I need to do this, if someone is accessing a url say
[mydomain.com...] then I need to pass it to /afile.php?URL=test.html
I tried this,
RewriteRule (.*)$ /fileidentifier.html?URL=$1 [QSA,L] but it not working.
Is it possible using .htaccess?
Thanks,
AjiNIMC
# Rewrite /<anything>.html to /afile.php?URL=<anything>.html
RewriteRule ^([^.]+\.html)$ /afile.php?URL=$1 [L]
For more information, see the documents cited in our forum charter [webmasterworld.com] and the tutorials in the Apache forum section of the WebmasterWorld library [webmasterworld.com].
Jim