1

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] 
</IfModule>
6
  • Sounds like you've perhaps not set the appropriate SITE_URL and HOME_URL in the WordPress config?
    – MrWhite
    Commented Jan 3, 2023 at 10:48
  • 1
    I double checked on that, it shows as subfolder. Commented Jan 3, 2023 at 11:06
  • Have you reset permalinks?
    – MrWhite
    Commented Jan 3, 2023 at 12:24
  • @MrWhite yes absolutely. Commented Jan 4, 2023 at 5:46
  • Please update your question with the contents of the apache configuration file for the second site and check that it's enabled. If you don't have a separate configuration file, that's the problem. Commented Jun 6, 2023 at 16:28

1 Answer 1

0

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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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