Wordpress - Subdirectory - htaccess

I have Wordpress installed in a subdirectory:

/public_html/blog/

I want to have access to the blog as follows:

http://example.com/blog

and posts like this:

http://example.com/blog/category/postname

In general settings, I have a "WordPress Address (Address)" set to:

http://example.com/blog

A permalink is set as follows:

/blog/%category%/%postname%

In a subdirectory (/ public_html / blog /) I have .htaccess like:

<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>

Everything works EXCEPT for access to the blog Homepage at: http://www.example.com/blog Doing this sends me to the page "Wordpress 404 Page Not Found".

I will be very grateful for the decision!

EDIT

I'm an idiot - I missed something vital. I also needed to change the site URL in Wordpress> General for:

http://example.com/blog

, // permalink . , , @IanB /blog/bit, . ...

+5
1

2 . , /blog/ permalink ( Wordpress ). , , .

, index.php Wordpress - /public _html/.

http://example.com/blog, .

, ? ?

+1

All Articles