This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

ushastik-00757485
ushastik-00757485

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
mjauvin

Try just setting RewriteBase to /octo/

Last updated

ushastik-00757485
ushastik-00757485

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

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.