Flight PHP Routing from Subdirectory

爱⌒轻易说出口 提交于 2019-12-04 12:16:20

I know this is an old question but I've been doing something similar just by adding something along the lines of

RewriteBase /flight/

in the .htaccess file (before all of your rules) of the flight directory. Hope this helps someone else looking for the same thing. Example:

RewriteEngine On
RewriteBase /flight/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [QSA,L]

Sorry for giving you an answer that is not going to help a lot. I'm running Flight (also sandboxing) on a subdirectory. I've created an .htaccess just with the defaults in the subdir and Flight is now regarding this as it's root.

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [QSA,L]

Did you check the content of the .htaccess on the higher levels, maybe there is something that is blocking you

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!