User Tools

Site Tools


installation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
installation [2016/02/01 17:06]
admin
installation [2016/02/01 17:45] (current)
admin [Create Consistent Base URL]
Line 178: Line 178:
  
 ===== Create Consistent Base URL ===== ===== Create Consistent Base URL =====
-Another possible reason could be caused by your BASE URL not being correct ​or if it changes. For example if your BASE URL is defined with the the www prefix www.yoursite.com but you type in just yoursite.com into the browser URL field, this can potentially cause problems if the URL changes with or without the WWW prefix while browsing different pages, including logging users out.+Some web servers treat URLs with **www** and **non www** as totally separate URLs or domains which can cause potential issues. For example if your BASE URL is defined with the the **www** prefix www.yoursite.com but you type in just **yoursite.com** into the browser'​s ​URL field, this can potentially cause problems if the URL changes with or without the **WWW** prefix while browsing ​or navigating to different pages.
  
-To prevent this and make it always rewrite with the www prefix, add the following ​to the top portion of your .htaccess file. +Most common issues are users being logged out when navigating the site, or during the registration process when a user attempts to select their state it continues to try and load but never actually loads. 
-Code: [Select] + 
-Options +FollowSymLinks+To prevent this from potentially happening it's best to make it always rewrite with the www prefix ​by including  ​the following ​code in the top portion of your .htaccess file. 
 +<​code>​Options +FollowSymLinks
 RewriteEngine on RewriteEngine on
 RewriteCond %{HTTP_HOST} ^yoursite.com [NC] RewriteCond %{HTTP_HOST} ^yoursite.com [NC]
 RewriteRule ^(.*)$ http://​www.yoursite.com/​$1 [R=301,L] RewriteRule ^(.*)$ http://​www.yoursite.com/​$1 [R=301,L]
-Then in the includes/​defines.inc.php file on your server be sure your Base URL has the WWW prefix, which will be in line #7:+</​code>​ 
 +Then in the **includes/​defines.inc.php** file on your server be sure your Base URL has the **WWW** prefix, which will be in line #7:
  
-define('​_BASEURL_','​http://​www.yoursite.com'​);//​ protocol required (http:// )+<​code>​define('​_BASEURL_','​http://​www.yoursite.com'​);//​ protocol required (http:// )</​code>​
  
 ==== Helper scripts ==== ==== Helper scripts ====
installation.1454346404.txt.gz · Last modified: 2016/02/01 17:06 by admin