multisite - How to make the redirects right? IP to domain name folders

Recently added a domain name and there are pageslinks that still include the IP address and when pressed redirects from

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

相关推荐

  • multisite - How to make the redirects right? IP to domain name folders

    Recently added a domain name and there are pageslinks that still include the IP address and when pressed redirects from

    2天前
    60

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信