PPlanet Posted June 4 Share Posted June 4 Hi guys, I've moved my subdomain to my top domain, and internally all is fine with IPS. I've created a redirect for Google links in Cloudflare like this, to redirect the whole site to the equivalent new urls: *forums.mydomain.com/* Forwarding URL (Status Code: 301 - Permanent Redirect, Url: https://mydomain.com/$1) Now, I'm 99% sure that should do the trick and redirect any page form the subdomain to the main domain. However the redirect is only taking you to the landing page of the main domain, but not to the equivalent pages of the main domain. For example, if I type https://forums.mydomain.com/gallery it takes you to https://mydomain.com instead of taking you to https://mydomain.com/gallery. For good measure, I've added a redirect in the htaccess file in forums.mydomain.com like this: RewriteEngine On RewriteCond %{HTTP_HOST} !forums.mydomain.com$ [NC] RewriteRule ^(.*)$ https://mydomain.com/$1 [L,R=301] But still the same. Any clues as what can be wrong? Could the site being offline have something to do? (I doubt it). Does these redirect take many hours? (However, it is redirecting, except that only to the landing page) Any ideas? Thanks Link to comment Share on other sites More sharing options...
PPlanet Posted June 4 Author Share Posted June 4 Okay working now, it looks it didn't like the asterisk before "forums" for some reason. Cheers. Marc Stridgen 1 Link to comment Share on other sites More sharing options...
Marc Stridgen Posted June 5 Share Posted June 5 Glad you have what you are looking for there. I have used something like this in the past myself Options +FollowSymLinks RewriteEngine On RewriteCond %{REQUEST_URI} ^/somefolderitwasin/(.*)$ RewriteRule ^(.*) https://something.something.com/$1 [R=301,NC] SeNioR- and PPlanet 2 Link to comment Share on other sites More sharing options...
Recommended Posts