Rewrite rule from other directory to wordpress blog
-
Hallo, my blog is in a lower directory on my homepage:
https://www.stayinbuenosaires.com/blog/The rewrite rule for links inside the blog works perfect:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
</IfModule>Now i wanted the same for links from the home directory.
I have a .htaccess file in root with the ruleabove too but how ever i change the directory in the rule i got a error when i click a link.
I wanted that the links from the home page look like the links inside the blog:
https://www.stayinbuenosaires.com/blog/about/ instead of
https://www.stayinbuenosaires.com/blog/?page_id=2
- The topic ‘Rewrite rule from other directory to wordpress blog’ is closed to new replies.