The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Hello!
I'm considering to buy a new domain name for my website, the existing domain is atraf-f.net and i want to buy atraf-f.com (for example). But in still want the keep the old domain, so that when someone enters atraf-f.net/forumdisplay.php?f=15 he will be redirected to atraf-f.com/forumdisplay.php?f=15. I've built a tiny code, and i want to know whether it would work or not, can you tell me please? PHP Code:
Will it work? Thanks! c'mon? surely someone must know this... |
|
#2
|
||||
|
||||
|
You should use .htaccess for this instead. There are plenty of tutorials to do this.
|
|
#3
|
|||
|
|||
|
can you give me a link to a tutorial?
Thanks id advance. |
|
#4
|
||||
|
||||
|
I'll just do it for you...
Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} !atraf-f.net$ [NC]
RewriteRule ^(.*)$ http://www.atraf-f.com/$1 [L, R=301]
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|