With a vBulletin forum, how can i redirect http:// to cPanelŽ. and detach the index.php from it as well?










With a vBulletin forum, how can i redirect http:// to cPanelŽ. and detach the index.php from it as well?










.htaccess




















I would not do that, sometimes index.php is going to be needed in the url and for sessions. Why don't you do what we do here and just remove index.php from the title image and the breadcrumb link?
Which can be done via editing the header and navbar templates.

index.php isn't need even if you're forced to using sessions or whatever as it can also append session id's without the .php file ex: 301 Moved Permanently would be the same as 301 Moved Permanently besides you shouldn't be using sessionID's anyway)
Adding this code to .htaccess should redirect all traffic to your www version and without index.php. Good for consoldating pagerank rather than having 3 different pageranks for your home page
ex: http://www.webtalkforums.com/index.php PR1Code:Options +FollowSymLinks DirectoryIndex index.php RewriteEngine On RewriteBase / RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/ RewriteRule ^index\.php$ http://www.DOMAINNAME.com/ [R=301,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L]
http://www.webtalkforums.com/ PR3
Last edited by seovb; Oct 1st, 2008 at 8:07 am.
SEOVB had a hissy fit like a little bitch for not being able to follow the rules!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks