How can I rewrite with apache mod_rewrite an entire directory?
1
vote
1
answer
387
views
I need this URL/directory
make/lores/some/
to point/map to login/
I also need to rewrite .php
extensions to .html
### Example
When the client types in example.com/make/lores/some/login.html
the server should process example.com/login/login.php
.
I have a rule below, but the issue is that the other files under the login directory ( e.g., /login/images/one.png
etc.) are not handled/rewritten so I end up with a 404 error.
RewriteRule ^(.*)\.htm$ login/index.php [NC]
Asked by hey
(243 rep)
Jun 28, 2014, 06:18 PM
Last activity: Aug 16, 2016, 08:37 AM
Last activity: Aug 16, 2016, 08:37 AM