I have a subfolder with a separate WordPress running on it. When I click on a link which should lead to the destination in the new website (the subfolder) it reads everything except the mentioned subfolder.

For example, my address is https://www.example.com and when I click the link, it should take to https://www.example.com/TheSubfolder/rest of the address. but it doesn't identify the subfolder. When I hover over the link it shows https://www.example.com/rest of the address.

How to solve this problem so everything shows correctly?

This is my .htaccess content. "old-parsik" is the subfolder which i am talking about.

<IfModule mod_rewrite.c> 
 RewriteEngine On 
 RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] 
 RewriteBase /old-parsik/ 
 RewriteRule ^index\.php$ - [L] 
 RewriteCond %{REQUEST_FILENAME} !-f 
 RewriteCond %{REQUEST_FILENAME} !-d 
 RewriteRule . /old-parsik/index.php [L] 
  • Sounds like you've perhaps not set the appropriate SITE_URL and HOME_URL in the WordPress config?
    – MrWhite
    Jan 3 at 10:48
  • 1
    I double checked on that, it shows as subfolder. Jan 3 at 11:06
  • Have you reset permalinks?
    – MrWhite
    Jan 3 at 12:24
  • @MrWhite yes absolutely. Jan 4 at 5:46

1 Answer 1


Log into the Wordpress backend (https://www.example.com/Thesubfolder/wp-admin and then in the Dashboard go to Settings - > General Change the Wordpress Address and Site Address to https://www.example.com/Thesubfolder

  • the OP says in a comment above "I double checked on that, it shows as subfolder."
    – Steve
    Jan 4 at 6:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.