Forum Moderators: phranque
GOAL:
FROM: [vette-nation.com...]
TO: [corvette-nation.com...]
Topics 1 thru 375 are moved to the other domain. It's all live but no matter what I do I cannot get a redirect to work.
I have forums 1 thru 7, same type of URL, viewforum.php?f=1 that also need to be redirected to the new domain.
I was including the forum number and topic number in my redirect.
All I had to do was drop that "?t=100" for topic # 100, a simple "veiewtopic.php" did the trick, and the variable was passed without having that in the redirect.
So, I did not need to redirect all posts, only the .php files, viewtopic.php, viewforum.php, index.php, etc. the rest of URL will pass without being included in the URL
Jesus, what a long day.
Query strings in rewriterules can be passed through unchanged, replaced, or cleared, or the rule can append new paramters to the existing query. The default is to pass the query through unchanged. If a question mark is present in the substitution URL, then this will not happen. Instead, the behaviour will depend on what else is in the rule:
Pass through : RewriteRule ^foo\.php$ /bar.php [L]
Clear query. : RewriteRule ^foo\.php$ /bar.php? [L]
Replace query: RewriteRule ^foo\.php$ /bar.php?req_uri=foo [L]
Append query : RewriteRule ^foo\.php$ /bar.php?req_uri=foo [QSA,L]
Jim