Jump to content

Recommended Posts

Posted

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

Posted

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]

 

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...