I have a directory on my site:
/new/
I want to access it and redirect to index.php which is one level below, but do not want the address change url, example:
accessing: www.site.com/new/
check out www.site.com /index.php
and the url remains www.site.com/new/
In htaccess could not do:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^novo/*$ /index.php [NC,L]
</IfModule>
How could he do?
Create a file /new/.htaccess
with this content:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ /index.php [L]
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.