revigniter removing index.lc from URL
Posted: Sun Oct 08, 2017 11:16 pm
Apologies for the newbie question, but I am learning revigniter hosted using on-rev. I would like to remove the index.lc reference from my url.
The documentation describes how to remove this as reproduced below ... but I don't understand how to create a .htaccess file or where to place it.
Any advice appreciated.
Documentation provided with revigniter
"By default, the index.lc file will be included in your URLs:
example.com/index.lc/news/article/my_article
You can easily remove this file by using a .htaccess file with some simple rules. Here is an example of such a file, using the "negative" method in which everything is redirected except the specified items:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.lc|image|img|assets|robots\.txt|css|js)
RewriteRule ^(.*)$ index.lc?/$1 [L]
</IfModule>
In the above example, any HTTP request other than those for index.lc, images, assets, robots.txt, css and js is treated as a request for your index.lc file."
The documentation describes how to remove this as reproduced below ... but I don't understand how to create a .htaccess file or where to place it.
Any advice appreciated.
Documentation provided with revigniter
"By default, the index.lc file will be included in your URLs:
example.com/index.lc/news/article/my_article
You can easily remove this file by using a .htaccess file with some simple rules. Here is an example of such a file, using the "negative" method in which everything is redirected except the specified items:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.lc|image|img|assets|robots\.txt|css|js)
RewriteRule ^(.*)$ index.lc?/$1 [L]
</IfModule>
In the above example, any HTTP request other than those for index.lc, images, assets, robots.txt, css and js is treated as a request for your index.lc file."