PDA

View Full Version : Redirect Permanent Problems with passing variables...


himerus
Sat 20th Mar '04, 10:15pm
I have 2 domains... http://forums.myispfinder.org/ and http://www.myispforum.com/ The latter is a new domain name that I have purchased specifically for my forums, and now, I want to use a RedirectPermanent directive in my .htaccess file to escort users to the appropriate domain name for the next couple of months while Google & other SE's find the new domain name and index it.

The redirect works great, unless thier are get variables in the URL...

http://example/showthread.php?t=2134323234324234

When I use the Redirect, the variables are being chopped off, and all the pages that are indexed by the search engines for the old domain name point to a error page after the variables are stripped off....

Any clues or something I may be missing?

TIA!!!

himerus
Mon 22nd Mar '04, 5:08am
I'm still having a huge problem with this...

I'm having to use a lot of static URLs that include the www.myispforum.com part of the domain rather than just relative paths while trying to juggle the board on 2 domains until I can figure out how to use the RedirectPermanent properly with variables.... :( It's probably easy.... just something I've never dealt with before. :)

Icheb
Mon 22nd Mar '04, 10:56pm
RewriteEngine On
RewriteRule !^index\.php.*|forumdisplay\.php$ /index.php4 [L]

Put that in your .htaccess and all calls to index.php and forumdisplay.php will get redirected to index.php4. Add other pages at your convenience.
Then use index.php4 to look at the requested uri, get the script and the query string and then redirect that to your new domain.
I hope the .htaccess rule is correct, I'm not that into .htaccess.

himerus
Sun 28th Mar '04, 11:42pm
that would probably do what I want, but I want to somehow use redirect perm simply because it allows the SE's to know to stop indexing, and I've heard rumor that pointing a domain to another using redirect permanent will transfer some of the PR from Googles system to the new domain.

It seems like it would be a simple fix, but I can find nothing about it online... I can't have been the first person to see this flaw in the RedirectPermanent directive. :(

himerus
Wed 21st Apr '04, 2:24am
Any other suggestions???? :(