User Tools

Site Tools


config:htaccess

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
Next revision Both sides next revision
config:htaccess [2011/03/04 16:47]
ccagle8
config:htaccess [2011/08/18 15:23]
d2a [Installing into subdir whilst keeping root relative Fancy URL's] added note about changing base url when editing existing installation
Line 17: Line 17:
 The code above should be included in your .htaccess file below the RewriteBase line, but before the **RewriteCond %{REQUEST_FILENAME} !-f** line. See [[http://​get-simple.info/​forum/​topic/​286/​force-or-nowww-code-for-htaccess/​|this forum post]] for more information. The code above should be included in your .htaccess file below the RewriteBase line, but before the **RewriteCond %{REQUEST_FILENAME} !-f** line. See [[http://​get-simple.info/​forum/​topic/​286/​force-or-nowww-code-for-htaccess/​|this forum post]] for more information.
  
 +===== Installing into subdir whilst keeping root relative Fancy URL's =====
 +
 +To install GetSimple into a subdir of your webserver such as .../cms/ . You may complete the installation using standard procedures. Upon completion you will want to create or edit your existing .htaccess file in the root directory of your webserver to include the following
 +
 +<​code>​
 +RewriteCond %{REQUEST_FILENAME} !-f
 +RewriteCond %{REQUEST_FILENAME} !-d [OR]
 +RewriteCond %{REQUEST_URI} =/
 +RewriteRule ^(.*)$ /cms/$1 [L]
 +</​code>​
 +
 +Of course, you must replace "​cms"​ in the above sample with the directory you chose to install GetSimple into. This will allow you visitors to navigate to mydomain.com/​contact-us rather than mydomain.com/​cms/​contact-us
 +
 +If you are editing an existing installation,​ be sure to change the website base URL in General Settings to reflect the new root url, so the navigation links are changed. ​
 ===== Optimization ===== ===== Optimization =====
  
config/htaccess.txt ยท Last modified: 2013/04/19 15:04 (external edit)