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

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

Help needed for RewriteRule in .htaccess file

Post by Dhvanit »

Hi

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 ... ging=beach
now how can I rewrite this url to http://website.com/tag/beach.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.
thiscatis
Forum Contributor
Posts: 434
Joined: Thu Jul 20, 2006 11:00 am

Post by thiscatis »

Hello mate,
We have a special forum for that ;)
Dhvanit
Forum Newbie
Posts: 6
Joined: Wed Apr 04, 2007 7:10 am

Post by Dhvanit »

Sorry for the troble.
Can you please tell me in which category should i post this issue?
thiscatis
Forum Contributor
Posts: 434
Joined: Thu Jul 20, 2006 11:00 am

Post by thiscatis »

I'm pretty sure it belongs here:
viewforum.php?f=31

That way the apache guru's will notice your post there and will gather all their htaccess midgets to start working
on your problem!
+ it keeps the board clean :)
Dhvanit
Forum Newbie
Posts: 6
Joined: Wed Apr 04, 2007 7:10 am

Post by Dhvanit »

ok thanks I am posting there.
Post Reply