This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
Hi! Could you please help me with htaccess? I've installed October into /octo/ but wish it to act like if it were in root. This code helps:
RewriteCond %{REQUEST_URI} !^/octo/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /octo/$1
RewriteRule ^(/)?$ octo/index.php [L]
But the original url WebsiteDotCom/octo/ is also available and duplicates the root. I tried to hide it somehow and failed, getting error 500. How do I do that properly?
Last updated
mjauvin said: Try just setting RewriteBase to
/octo/
Setting the RewriteBase only does nothing. Adding it to my config does nothing as well... That's probably because RewriteBase usually does nothing when an absolute path is on the agenda.
May be to do something with config -> app.php -> url ? Don't know :(
Last updated
1-3 of 3