Home .htaccess rewrites one url, not the other
Reply: 0

.htaccess rewrites one url, not the other

user842 Published in June 20, 2018, 11:04 pm

I've got this set of .htaccess rewrites set up (Zend Framework default rewrite rules):

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]

My DocumentRoot folder contains only .htaccess and index.php, nothing else.

The rewrite rules should send all requests to non-existing files through index.php. This happens for /herp/derp/ (wheter a controller exists or not) , but not for /index/herp/ or any other url starting with /index/.

All /index/* urls are routed to the 404 page of apache, all other urls do work.

How should I fix this?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.312465 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO