Go Back   vBulletin Setup > vBulletinSetup Information > vBulletin Questions


Please Register to get full access to the forums.
Post New Thread  Reply



#1   03-09-2008, 12:10 PM
Send a message via MSN to Magnumutz Send a message via Yahoo to Magnumutz Send a message via Skype™ to Magnumutz Magnumutz has a spectacular aura about Join Date: Dec 2006 Posts: 501 Location: Romania
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.
Quote   |  



#2   03-09-2008, 12:58 PM
Send a message via AIM to Brandon Send a message via MSN to Brandon Send a message via Yahoo to Brandon Brandon is a glorious beacon of lightBrandon is a glorious beacon of lightBrandon is a glorious beacon of lightBrandon is a glorious beacon of light Join Date: Jul 2006 Posts: 9,809 Location: Topeka, KS
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 / vBulletin Setup Staff
Check out our Newsletter for the latest vB and SEO news.
Are you looking for vBulletin work to be done on your forums ?
Would you like to Help Support vBulletin Setup.

Please do not PM me for support, that's what the forums are for.
Have you heard about Crowdgather?
Find it on Forums


Stay up to date by installing our Tool Bar
Quote   |  



#3   03-09-2008, 01:40 PM
Curio has a spectacular aura about Join Date: Jan 2008 Posts: 126
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 01:53 PM.
Quote   |  



#4   03-09-2008, 02:40 PM
Send a message via MSN to Magnumutz Send a message via Yahoo to Magnumutz Send a message via Skype™ to Magnumutz Magnumutz has a spectacular aura about Join Date: Dec 2006 Posts: 501 Location: Romania
Re: Rewrite setting?


Thanks Brandon, it works like a charm ;)
Quote   |  
Post New Thread  Reply
vBulletin Setup > vBulletinSetup Information > vBulletin Questions


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
URL rewrite question Brooksy vBulletin SEO Tips and SEO Questions 10 01-31-2008 10:55 AM
disable url rewrite for threads? jackni vBulletin Questions 1 01-11-2008 05:57 PM
rewrite mod ......!!!!??? loka vBulletin Hosting Questions 12 11-03-2007 05:01 PM
Help with a rewrite Lordo vBulletin SEO Tips and SEO Questions 2 07-07-2007 04:41 PM
Zoints SEO Custom Rewrite Rules sunilvarma Feedback and Suggestions 15 04-14-2007 11:39 AM


All times are GMT -6. The time now is 03:55 PM.

vBulletin Setup, vBulletin Setup Forums, vBulletin Services, vBulletin Blogs, vBulletin SEO, vBulletin Questions, vBulletin Skins, Styles, Templates
vBulletin Hacks / Modifications, vBulletin Monetization, Blogs, vBulletin Link Directory,Quality Link Directory