Forum Moderators: Robert Charlton & goodroi
Should I 301 the www. version via htaccess.
[edited by: aakk9999 at 11:02 pm (utc) on Sep 28, 2013]
[edit reason] replaced mysite.com with example.com to prevent auto-linking [/edit]
The only thing of concern is the website I used to check for 200 response codes is now reporting 301 for all versions on the url (but the site itself loads fine).
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . routing.php
RewriteCond %{HTTP_HOST} !^example.com$ [NC]
RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . routing.php
<?
$tmp_url=explode("/",$_SERVER['REQUEST_URI']);
$check = 0;
include($_SERVER['DOCUMENT_ROOT']."/index.php");
?>