Hi,
I am using Apache mod_rewrite on Xampp on my local machine but the code doesnt seem to work.
Please look at the code below and assist me. I'm a beginner with this.
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^m3/([a-zA-Z0-9-]+)$/?profile=com_frontpage&url=$1 [L,QSA]
What I want is the URL below:
http://localhost/m3/?profile=com_frontpage&url=nero
to be rewritten as
http://localhost/m3/nero
Please help me achieve this.
Thanx
Thanks for your quick responses
I have implemented the revised code given but once I try to enter the new URL I keep getting a 404 error.
I am using Xampp on a Windows OS so renaming the file to .htaccess is being rejected and I am not sure using 'htaccess.txt' is working.
What could be the issue?
Thanx