I placed my main WordPress website (http://www.marcozanetti.it) in a subfolder of www called ‘blog’.
I’d like, when the user goes to www.marcozanetti.it, to be redirected to http://www.marcozanetti.it/blog. This happens, and works.

This is the .htaccess file that allows me to do that:

# BEGIN WordPress
<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>
# END WordPress

Now I importe../css/d_another_WordPress_website__that_I_placed_in_a_subfolder__called___8216.css;martiemarco’.

I noticed that if I go to http://www.marcozanetti.it/martiemarco I can see the home page, but if I click on a link like http://www.marcozanetti.it/martiemarco/la-lista-nozze/ I’m not getting the right page. I get a page with the same layout of http://www.marcozanetti.it/blog, saying the category or post does not exist.

I think this is due to the .htaccess rules but… how can I achieve the redirection from http://www.marcozanetti.it to http://www.marcozanetti.it/blog without breaking the references inside http://www.marcozanetti.it/martiemarco?

Thank you

Read more here: How to handle my .htaccess in order to redirect correctly to two subfolders?


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: