Page 1 of 1

Help needed for RewriteRule in .htaccess file

Posted: Wed Apr 04, 2007 7:15 am
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.

Posted: Wed Apr 04, 2007 7:17 am
by thiscatis
Hello mate,
We have a special forum for that ;)

Posted: Wed Apr 04, 2007 7:22 am
by Dhvanit
Sorry for the troble.
Can you please tell me in which category should i post this issue?

Posted: Wed Apr 04, 2007 7:24 am
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 :)

Posted: Wed Apr 04, 2007 7:26 am
by Dhvanit
ok thanks I am posting there.