Go Back   vBulletin Setup > vBulletinSetup Information > Troubleshooting vBulletin Problems

Reply 
 
LinkBack Thread Tools Display Modes
Old 03-09-2008, 10:10 AM   #1
vBulletin Owner
 
Magnumutz's Avatar
 
Join Date: Dec 2006
Location: Romania
Posts: 584
Magnumutz is a jewel in the rough
Send a message via MSN to Magnumutz Send a message via Yahoo to Magnumutz Send a message via Skype™ to Magnumutz
Rewrite setting?

Ok... so, here's the deal, my forum is Arcade Mania .

I'd want everyone to be redirected to Arcade Mania, when accessing the above link... and i haven't got a clue on how to do this.

Hope i've explained well enough for you guys.
__________________
rapidshare downloads
Magnumutz is offline   Reply With Quote

Advertisement [Remove Advertisement]

Old 03-09-2008, 10:58 AM   #2
Community Manager
Supporters
vBulletin Owner
vBSetup Mods
 
Brandon Sheley's Avatar
 
Join Date: Jul 2006
Location: Topeka, KS
Posts: 14,115
Blog Entries: 35
Brandon Sheley is a splendid one to beholdBrandon Sheley is a splendid one to beholdBrandon Sheley is a splendid one to beholdBrandon Sheley is a splendid one to beholdBrandon Sheley is a splendid one to beholdBrandon Sheley is a splendid one to behold
Send a message via AIM to Brandon Sheley Send a message via MSN to Brandon Sheley Send a message via Yahoo to Brandon Sheley
Re: Rewrite setting?

put this in your root .htaccess file

Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www.example.com [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
__________________
Brandon Sheley / vBulletinSetup Staff
Check the Newsletter & Marketplace for the latest deals.
Looking for a place to Support vBulletinSetup?
Submit your Forum and other Quality Websites.


Brandon Sheley is offline   Reply With Quote
Old 03-09-2008, 11:40 AM   #3
vBulletin Owner
 
Curio's Avatar
 
Join Date: Jan 2008
Posts: 125
Curio has a spectacular aura about
Re: Rewrite setting?

Quote:
Originally Posted by Brandon View Post
put this in your root .htaccess file

Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www.example.com [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
I've been doing this for a while now on my site, but how can I get it to work for directories... ex http://vbstartup.com/testvb gives me a 404 while adding www. before it makes it work...

It's weird... it seems to work with some and not with others... Ex. Banned works

Last edited by Curio; 03-09-2008 at 11:53 AM.
Curio is offline   Reply With Quote
Old 03-09-2008, 12:40 PM   #4
vBulletin Owner
 
Magnumutz's Avatar
 
Join Date: Dec 2006
Location: Romania
Posts: 584
Magnumutz is a jewel in the rough
Send a message via MSN to Magnumutz Send a message via Yahoo to Magnumutz Send a message via Skype™ to Magnumutz
Re: Rewrite setting?

Thanks Brandon, it works like a charm
__________________
rapidshare downloads
Magnumutz is offline   Reply With Quote
Reply 
vBulletin Setup > vBulletinSetup Information > Troubleshooting vBulletin Problems

Tags
rewrite, setting

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help!!!! rewrite rules for ibproarcade Movie-Streaming Troubleshooting vBulletin Problems 9 10-05-2009 09:14 AM
URL rewrite question Brooksy vBulletin SEO Tips and SEO Questions 8 01-31-2008 08:55 AM
disable url rewrite for threads? jackni Troubleshooting vBulletin Problems 1 01-11-2008 03:57 PM
rewrite mod ......!!!!??? loka Troubleshooting vBulletin Problems 12 11-03-2007 03:01 PM
Help with a rewrite Lordo vBulletin SEO Tips and SEO Questions 2 07-07-2007 02:41 PM


All times are GMT -8. The time now is 11:53 PM.