1

I have an cakephp application as the root folder and .htaccess is written as follows

<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteRule ^$ app/webroot/ [L]
    RewriteRule (.*) app/webroot/$1 [L]
</IfModule>

Now what I want is a core php application in its Subfolder, but .htaccess is causing trouble for me. What is best way to write the .htaccess so both can work.

Pradeep Singh
  • 1,282
  • 2
  • 19
  • 35

1 Answers1

2

The easiest solution is to simply put whatever it is you want to access in the webroot directory i.e. for the url http://example.com/other/thing.php don't do this:

html/
    app
        webroot/
    other/
         thing.php

Do this:

html/
    app
        webroot/
            other/
                thing.php
AD7six
  • 63,116
  • 12
  • 91
  • 123