2 edited tags
| link
source | link

URL redirect/rewrite rule wordpress multisite

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.com and the site is run on following url www.adeel.com/area-guides. Because at www.adeel.com 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.com/wp-admin/network/ and it displays URL NOT FOUND. If i type in manually www.adeel.com/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.com/wp-admin -> adeel.com/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.com/area-guides' instead of just www.adeel.com. 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]