Recently added a domain name and there are pages/links that still include the IP address
and when pressed redirects from http://ipaddress/subfoldersite/folder
to mydomain
. I have multisite
network and my subfolders
site has this issue. Is it related to .htaccess
? What has to be changed to fix this issue?
Current .htaccess file:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond % 80
RewriteRule ^(.*)$ /$1 [R,L]
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]
</IfModule>
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744900127a4599926.html
评论列表(0条)