url rewriting - URL redirectrewrite rule wordpress multisite

admin2025-06-02  2

I am running wordpress multisite on a server. The main site is working just fine are url redirects are perfect. Say my domain is www.adeel and the site is run on following url www.adeel/area-guides. Because at www.adeel another site is running(not in wordpress, completely different).

The issue

From admin panel when I try to go to network admin dashboard it redirects me to www.adeel/wp-admin/network/ and it displays URL NOT FOUND. If i type in manually www.adeel/area-guides/wp-admin/network/, it takes me to the network dashboard. And inside that dashboard all url starts from area-guides except when I try do something that updates that page.

what I want I want to set all url which contain adeel/wp-admin -> adeel/area-guides/wp-admin

I believe by doing this it'll solve the issue.

**what else I have tried ** I have tried changing domain current site to 'www.adeel/area-guides' instead of just www.adeel. It appends the url but those urls are stuck in redirect loops tried several things but couldn't resolve them.

** htaccess file **

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]

# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]
转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1748809785a313905.html

最新回复(0)