0
votes

I've installed Laravel October CMS. When I access http://localhost/index.php/backend, I can see the loging page of the backend. When I access http://localhost/backend I've 404 Not Found.

I've taken a look to .htaccess, I've uncommented the RewriteBase and set the value / /index.php.

However it still returns a 404. Do you know why?

1
My first step in order to solve this will be to check if my htaccess file is working or not. You could check by putting some garbage lines in your htaccess file and try to access a URL if it gives 500 internal error then it means it works fine then we could move to next step and so on.RavinderSingh13
I have edited the .htaccess. I added test in first line. No error is shown so indeed the htaccess file is not read. :-(JarsOfJam-Scheduler
You could go through this link linode.com/docs/guides/how-to-set-up-htaccess-on-apache once to enable htaccess, it was a quick Google check it out once, should be fine I believe,cheers.RavinderSingh13
Yes, .htaccess and index.php are under the same tree path:)JarsOfJam-Scheduler
Please post the contents of your .htaccess file. It probably just needs a slight tweak, otherwise you need to explain precisely what it's meant to be doing. I would guess it needs to route all requests to the CMS front-controller. Is your "CMS" installed in the document-root?MrWhite

1 Answers

2
votes

I believe you are simply looking for following Rule based on your shown samples. Also please make sure you clear your browser cache before testing your URLs.

RewriteEngine ON
RewriteRule ^backend/?$ index.php [NC,L]

In case this is the only rule of your htaccess file then change L to END in above.