Visitor ModRewrite #2273
M0TZO
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Since version 2 a minor issue has bugged me. Thanks to DF2ET for pointing me toward the solution.
Below is the config I use now so visitors/public can see my Logbook. (please make your own slug in Station Logbooks)
Minor downside (I've probably missed) is the Homepage "Cloudlog" link logs me out instead of taking me to the Dashboard, but I can live with that for now.
# If you want to hide 'index.php' from the URL, rename this file to '.htaccess' on your server
# Then change the following variable in /application/config/config.php
# $config['index_page'] = '';
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [L]
# Redirect the root URL
RewriteRule ^$ /visitor/ownslug [L,R=301]
# Redirect 404 error pages
ErrorDocument 404 /visitor/ownslug
Paul M0TZO
Beta Was this translation helpful? Give feedback.
All reactions