Help needed for RewriteRule in .htaccess file

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Locked
Dhvanit
Forum Newbie
Posts: 6
Joined: Wed Apr 04, 2007 7:10 am

Help needed for RewriteRule in .htaccess file

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Duplicate thread. Locked.
Locked