Page 1 of 1

Help needed for RewriteRule in .htaccess file

Posted: Wed Apr 04, 2007 7:27 am
by Dhvanit
Can you please let me know how should i rewrite url throuth .htaccess file?

the url code is http://website.com/index.php?file=produ ... agging=red
now how can I rewrite this url to http://website.com/tag/red.html

FYI My .htaccess file contain following code.

ErrorDocument 404 /index.php
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^website.com$ [NC]
RewriteRule ^(.*)$ http://website.com/$1 [L,R=301]

Thanks in advance.
Dhvanit.

Posted: Wed Apr 04, 2007 8:09 am
by feyd
Duplicate thread. Locked.