The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
.htaccess redirect
Hello,
I want to make a redirect like this through .htaccess: from: http://www.forosperu.net/forumdisplay.php?f=282 to: http://www.forosperu.net/forumdisplay.php?f=323 I have just tried placing something like this on my .htaccess with no luck Code:
Redirect 301 /forumdisplay.php?f=282 http://www.forosperu.net/forumdisplay.php?f=323 Thank you, Jonathan |
#2
|
|||
|
|||
Any idea?
|
#3
|
|||
|
|||
Try adding the "RewriteEngine on" just before the redirect.
I put one before each set of rules. Code:
RewriteEngine on Redirect 301 /forumdisplay.php?f=282 http://www.forosperu.net/forumdisplay.php?f=323 |
#4
|
|||
|
|||
Thanks but "RewriteEngine on" is present at the begin of .htaccess
Anyone here knows a possible workaround for this? |
#5
|
||||
|
||||
just a guess here...but maybe you need the http:// in the first link in the rewrite. It looks like you have it in the second part, but not the first.
|
#6
|
|||
|
|||
I am VERY well aware that the RewriteEngine On command is at the beginning.
What I am suggesting you try, based on me having he same issue, is putting the RewriteEngine On command before every different set of rules. The first set of rules here will redirect yoursite.com to www.yoursite.com. The second set will redirect all yoursite.com/index requests to yoursite.com/ Both of these will help you avoid duplicate content penalties. Code:
RewriteEngine On RewriteCond %{HTTP_HOST} !^www\.yoursite\.com$ [NC] RewriteRule ^(.*)$ http://www.yoursite.com/$1 [L,R=301] RewriteEngine on # index.php to / RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*index\.php\ HTTP/ RewriteRule ^(.*)index\.php$ /$1 [R=301,L] RewriteEngine on Redirect 301 /folder http://www.yoursite.com/folder Redirect 301 /folder http://www.yoursite.com/folder |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|