I have a base .htaccess rules on xampp localhost project
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /www/project.ru/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /www/project.ru/index.php [L]
</IfModule>
# END WordPress
If II fill this path - www/project.ru/popular/ I want that redirected me to popular.php in main theme and it allow access Now I receive "404 Page not found"
How make it?
You can try turning on multiviews:
Options +Multiviews
which will kick in mod_negotiation and will attempt to fuzzy match requests to resources. So /foo/
would load /foo.php
.
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.