Forum Moderators: phranque
Yes I have been scouring the forums on this one, but I've had a crack at it, so if any help on this one will be more than appreciated.
I've got this site
[mydomain.com...]
and I would like this to show the following URL:
[mydomain.com...]
I've had a crack at this and here's my attempted effort on this:
RewriteEngine On
RewriteLog /usr/local/apache/logs/rewrite_log
RewriteLogLevel 0
RewriteCond %{REQUEST_URI} ^/test/index.php$ [NC]
RewriteCond %{QUERY_STRING} sid=([0-9]+) [NC]
RewriteRule ^/TEST/index.php /test/%1.html [L,R]
Is it necessary to use RewriteLog command?
Many Thanks
:-)
Then I refresh the website and nothing seems to be working.
I've checked to see mod_rewrite is installed, and it is, I've restarted the web server, and still doesn't work.
Any ideas?
Many Thanks
Be careful of the restrictions on mod_rewrite directive context -- For example, RewriteLog directives won't work in .htaccess. The valid contexts are described below each directive in the documentation.
In addition to reading the thread at the link that operafan provided, you might also want to try the simple test described here [webmasterworld.com] in message #2.
Jim