View Full Version : htaccess help
Sanzbar
Mar 22nd 2006, 8:18 pm
Hey guys,
How would I rewrite a specific page to a different domain...I've tried this, but it isn't working:
RewriteEngine On
RewriteRule ^/forums/posting.php?mode=topicreview&t=350$ http://www.example.net/
exam
Mar 22nd 2006, 9:11 pm
Just do a redirect:redirect 301 /forums/posting.php?mode=topicreview&t=350 http://www.example.net/
Sanzbar
Mar 22nd 2006, 9:32 pm
Just do a redirect:redirect 301 /forums/posting.php?mode=topicreview&t=350 http://www.example.net/
it works for just /forums/posting.php
but when you add the "?mode=topicreview&t=350" it throws it off for some reason...any thoughts?
Nintendo
Mar 22nd 2006, 9:37 pm
Options +Indexes
Options +FollowSymlinks
RewriteEngine on
RewriteBase /
RewriteRule ^forums/posting.php?mode=topicreview&t=350$ http://www.example.net/ [R=301,L]
Sanzbar
Mar 22nd 2006, 9:48 pm
Options +Indexes
Options +FollowSymlinks
RewriteEngine on
RewriteBase /
RewriteRule ^forums/posting.php?mode=topicreview&t=350$ http://www.example.net/ [R=301,L]
Doesn't seem to be working...which folder would I need it in? The main or the forum folder? I've got it in the main...
Nintendo
Mar 22nd 2006, 10:02 pm
domain.com/.htaccess
for
domain.com/forums/posting.php?mode=topicreview&t=350
exam
Mar 23rd 2006, 1:15 pm
Did you try escaping the . and ? in the URL?redirect 301 /forums/posting\.php\?mode=topicreview&t=350 http://www.example.net/or Options +Indexes
Options +FollowSymlinks
RewriteEngine on
RewriteBase /
RewriteRule ^forums/posting\.php\?mode=topicreview&t=350$ http://www.example.net/ [R=301,L]
vBulletin® v3.6.8, Copyright ©2000-2008, Jelsoft Enterprises Ltd.