$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>url rewriting - URL redirectrewrite rule wordpress multisite|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

url rewriting - URL redirectrewrite rule wordpress multisite

matteradmin8PV0评论

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]
Post a comment

comment list (0)

  1. No comments so far