I have the wordpress on this url:
http://www.website.com/blog/
If I try to open any post the url only work as:
http://www.website.com/blog/%postname%
When I try to put trailing slash at the end it give error 404.
http://www.website.com/blog/%postname%/
This is my .htaccess
IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
</IfModule>
也许您可以尝试重新生成永久链接并在Wordpress设置中设置自定义结构。
http://www.website.com/%category%/%postname%/
I found the error:
It was URlScan It was blocking my Urls because some of them contain dots.
example: http://website.com/blog/test-3.0/style/foo.css
I opened up the UrlScan.ini file located:
%windir%\system32\inetsrv\urlscan\UrlScan.ini
And changed AllowDotInPath=0 to AllowDotInPath=1
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.