htaccess trouble after server migration

ساخت وبلاگ
My domain name is tribunemicael.net and my forum is hosted on it.
I recently had it migrated.
The old shared URL for the domain was (Prefix this with http:// ) tribunem.wwwss23.a2hosted.com/
and the new shared URL is (Prefix this with http:// ) tribunem.wwwmi3-ss3.a2hosted.com/

I want tribunemicael.net to be automatically rewritten as the new shared URL.
But for some reason, in some cases it still gets rewritten as the old shared URL,
even though I updated my .htaccess file, see below.

If I type tribunemicael.net/index.php in my browser I am correctly sent to the
forum's index page. If, however, I just type tribunemicael.net/, I am automatically redirected to a
http://tribunem.wwwss23.a2hosted.com...pendedpage.cgi page which is a left-over
from the old server.
Here goes my .htaccess file :

Code:

RewriteEngine on
#
# Uncomment the statement below if you want to make use of
# HTTP authentication and it does not already work.
# This could be required if you are for example using PHP via Apache CGI.
#
#<IfModule mod_rewrite.c>
#RewriteEngine on
#RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
#</IfModule>

<Files "config.php">
Order Allow,Deny
Deny from All
</Files>

<Files "common.php">
Order Allow,Deny
Deny from All
</Files>

#Lines prefixed with "####" have been disabled on your behalf by A2 Hosting Support.
####RewriteCond %{HTTP_HOST} ^tribunemicael.net$ [OR]
RewriteCond %{HTTP_HOST} ^www.tribunemicael.net$
RewriteCond %{REQUEST_URI} !^/[0-9]+..+.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}.txt(?: Comodo DCV)?$
RewriteCond %{REQUEST_URI} !^/.well-known/acme-challenge/[0-9a-zA-Z_-]+$
####RewriteRule ^/?$ "http://tribunem.wwwss23.a2hosted.com/" [R=301,L]
RewriteRule ^/?$ "http://tribunem.wwwmi3-ss3.a2hosted.com/" [R=301,L]

CodingForums...
ما را در سایت CodingForums دنبال می کنید

برچسب : نویسنده : codingforums بازدید : 149 تاريخ : سه شنبه 25 مهر 1396 ساعت: 22:45