0

My application structure is like:

wamp/www
        /project
            /app
            /public
            /system
            /writable

I am able to access the application from http://localhost/project/public. However, http://localhost/project shows index of project.

I tried putting .htaccess file in the project folder.

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

It is also not working.

How do I make the application accessible from the project folder.

arun kumar
  • 703
  • 2
  • 13
  • 33
  • this is already answered here i think https://stackoverflow.com/questions/48376090/how-to-remove-public-index-php-from-url-in-codeigniter-4 – Ajit Bhandari Mar 14 '20 at 13:09
  • The rewritebase solution described in the question is taken from the above link. Few other suggestions from the link are also not working. – arun kumar Mar 16 '20 at 04:47

0 Answers0