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>
Maybe you can try to regenerate the permalinks and set custom structure in WordPress settings.
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:
And changed AllowDotInPath=0 to AllowDotInPath=1