Site Redirection
#1
New Member
Thread Starter
Join Date: 04-07-09
Location: Jackson, MS
Posts: 39
Likes: 0
Received 0 Likes
on
0 Posts
Site Redirection
In my personal opinion of course, you need to properly redirect the site to a non www or just www for everyone. This way if I visit https://www.cobaltss.net I get https://www.cobaltss.net or vice versa.
You can easily do this through the .htaccess file. It would look a little something like this
Prolly best placed after all the rewrites in the .htaccess.
I also noticed that you have an index.php issue. That should be redirected to the main site. You can visit www.clanthemes.com/index.php to see what I mean. This is best for SEO purposes and bookmarks etc.
The complete code for the .htaccess looks something like this
Of course modified if you choose to go non-www.
You can easily do this through the .htaccess file. It would look a little something like this
PHP Code:
RewriteBase /
RewriteCond %{HTTP_HOST} ^clanthemes.com$
RewriteRule ^(.*)$ http://www.clanthemes.com$1 [R=301,L]
RedirectPermanent http://clanthemes.com http://www.clanthemes.com
I also noticed that you have an index.php issue. That should be redirected to the main site. You can visit www.clanthemes.com/index.php to see what I mean. This is best for SEO purposes and bookmarks etc.
The complete code for the .htaccess looks something like this
PHP Code:
#----Redirect index.php---------------------
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteRule ^index\.php$ http://www.clanthemes.com/ [R=301,L]
RewriteBase /
RewriteCond %{HTTP_HOST} ^clanthemes.com$
RewriteRule ^(.*)$ http://www.clanthemes.com$1 [R=301,L]
RedirectPermanent http://clanthemes.com http://www.clanthemes.com
Last edited by floppy; 04-24-2009 at 08:10 PM. Reason: Automerged Doublepost
Thread
Thread Starter
Forum
Replies
Last Post
Delta coupe
Pictures & Videos
1
09-30-2015 08:11 AM