regex - .htaccess remove public folder and index.php in subdirectory -


I'm building an API which is divided into subfolders I a version api.com/v1 of this API Is located and in the next version the version is four, which is located in / v4.

The version was not using any framework and it was just PHP directly. In version 4 of API, the use of larvell is being used as its basis. Thus resulting in a public folder. I do not want to end up like API URL 'api.com/v4/public/entry'

The only work properly with .htaccess went provides index.php filtering out the URL, but I think it public Folder and index.php file was not found to be filtered, while keeping the v4 subdirectory in the URL

I'm not sure that this is possible at all.

Then api.com/v4/img/banner.png to api.com/v4/public/img/banner.png . And api.com/v4/gis/layer1.xml link from the api.com/v4/public/index.php/gis/layer1.xml

should

Even in my .htaccess file is so far, which has been used to filter the 'index.php' modified version of the URL is located in the v4 folder (.htaccess file public folder located.)

  Riwaitingin at Riwait to add original evidence supporting Conduct% {REQUEST_FILENAME} - S [OR] RewriteCond% {REQUEST_FILENAME} -l [OR] RewriteCond% {REQUEST_FILENAME} - D Rewrite rules The following rules tell Apache that if the requested filename is present, simply copy it to the service RewriteCond% {REQUEST_FILENAME} -s [OR] RewriteCond% {REQUEST_FILENAME} -l [* E = HTTP_AUTHORIZATION:% {HTTP: Authorization}] # OR] Rewrite code% {REQUEST_FILENAME} -d Rivieraith ^. * $ - [NC, L] #writes all the other questions for the following index.php # Condition ensures that if you are using Apache aliases to perform #Jon Virtual Hosting, the base path will be # The appropriate solution of # index.php file will be prepended for; It will work # in a non-aligned environment, as well as a safe, one size # fits all solutions RewriteCond% {REQUEST_URI} :: $ 1 ^ (/.+) (. +) :: \ 2 $ RewriteRule ^ (. *) - [e = base:% 1] rewrite Rules ^ (. *) $% {ENV: based} public / index.php [NC, L]  
< P>

Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -