Forum Moderators: phranque
I've been trying to get mod_rewrite to work on my server, not having much luck.
What I've done is placed the code into an .htaccess file placed into the 'test' directory, and also placed the file in the root directory.
This is what I'm trying to achieve:-
[mydomain.com...]
and I would like this to show the following URL:
[mydomain.com...]
Code:
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/test/index.php$ [NC]
RewriteCond %{QUERY_STRING} sid=([0-9]+) [NC]
RewriteRule ^/TEST/index.php /test/%1.html [L,R]
Then I refresh the website and nothing seems to be working.
I've checked to see mod_rewrite is installed, by running this command
/etc/httpd/bin/httpd -l
and I have mod_rewrite. I've restarted the web server, and still doesn't work.
Any ideas?
Many Thanks ;)