WordPress permalink with trailing slash give 404

I have the wordpress on this url:

http://www.website.com/blog/

Read More

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>

Related posts

Leave a Reply

2 comments

  1. Maybe you can try to regenerate the permalinks and set custom structure in WordPress settings.

    http://www.website.com/%category%/%postname%/
    
  2. 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%system32inetsrvurlscanUrlScan.ini
    

    And changed AllowDotInPath=0 to AllowDotInPath=1