The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
redirect to a new URL
hey, im moving my site domain from math-pl.co.il to emath.co.il .
ive copied all the forums to be under emath.co.il, though, i need that my users who usually entering the math-pl url to be redirected to the emath.co.il url to the same thread. for e.g if the thread is : http://www.math-pl.co.il/forums/showthread.php?t=5587 so it will be redirect immediately to http://www.emath.co.il/forums/showthread.php?t=5587 i know its a simple php code and should be in the header but ive no idea how to do it. any help ? |
#2
|
|||
|
|||
It actually has nothing to do with PHP. If you currently have a domain and you want to forward it to another site you have to add it to your server.
Do this by editing the nameservers and adding that domain onto the box. Source: http://www.webcomindia.net/cpanel-help/AddonDomains.htm Hope my information helps |
#3
|
||||
|
||||
Or just add a .htaccess rule.
Code:
RewriteEngine On RewriteCond %{HTTP_HOST} math-pl.co.il$ [NC] RewriteRule ^(.*)$ http://www.emath.co.il/$1 [R=301,L] |
#4
|
|||
|
|||
Some hosts may not have rewrite enabled, but that is an excellent second method. The majority of hosting companies these day do support this function.
|
#5
|
|||
|
|||
thanks alot
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|