I'm using the php_include to protect my php files. When I type in my domain http://yourdomain.net/amember/members/index.php the login page shows up. Now when I add a www into the url http://www.yourdomain.net/amember/members/index.php the login page doesn't show and instead it shows what's on the protected php page. I used a fresh browser and had deleted all my cookies to make sure. How can I resolve this issue? Thanks in advance, Johnny
in your .htaccess redirect everyone to the non www with something like this: Code: # If subdomain www exists, remove it first RewriteCond %{HTTP_HOST} ^www\.([^\.]+\.[^\.]+)$ [NC] RewriteRule ^(.*)$ http://%1/$1 [R=301,L] # If requested resource does not exist as a file RewriteCond %{REQUEST_FILENAME} !-f # and does not end with a period followed by a filetype RewriteCond %{REQUEST_URI} !..+$ # and does not end with a slash RewriteCond %{REQUEST_URI} !/$ # then add a trailing slash and redirect RewriteRule (.*) $1/ [R=301,L]