简体   繁体   中英

Wordpress - 2 Installation in root and subfolder in same Domain

straight to the scenario: - i had a wordpress site in my domain.de/develop - and a wordpress site in root domain.de I moved the the root one to 'story' and the 'develop' to the root.

The root one works fine. Now i've got a problem with the story one, the redirect of the articles does not work.

I've changed the siteurl (database->wp_options) and had changed my .htaccess in the 'story' folder (correct?):

<FilesMatch \.php$>
SetHandler x-httpd-php7.0
</FilesMatch>

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

I though maybe the RewriteBase is corrput, so I changed it to: RewriteBase /story

The result is the same: when calling the WP Install from subfolder, it says "page cannot be found". after calling an article, it will be redirected to the root one and say "page not found" eg: http://mydomain.de/story/ -> result: the 2nd wordpress with "page not found". clicking an article, eg: http://mydomain.de/story/category/storyline/2016/04/24/durchatmen/ -> redirects to the root-wp and says "Nothing found".

i did all the research in the web and here on stackoverflow, but nothing seems to work.

all i want to do is to get the wp-install from the subdirectory working again. Logging in as administrator just works fine. but i can't accesss the page content itself.

Once logged into admin dashboard, go to settings/permalinks and re-save permalinks.

If that doesn't fix your problem. Download the search and replace script from https://interconnectit.com/products/search-and-replace-for-wordpress-databases/ and run that to fix all serialized urls...

I'm assuming you would search for domain.de/develop and replace with domain.de/story if I understood that correctly.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM