Jun 28, 2020

301 redirect domain name and all URL paths remain the same

jimbojames85 replied to thread 301 redirect domain name and all URL paths remain the same

Hi there,

I've got to sorted. I've done this:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^olddomain.com [NC,OR]
RewriteCond %{HTTP_HOST} ^www.olddomain.com [NC]
RewriteRule ^(.*)$ https://newdomain.com/$1 [L,R=301,NC]

Thanks anyway

Jun 25, 2020

301 redirect domain name and all URL paths remain the same

jimbojames85 published thread 301 redirect domain name and all URL paths remain the same

Hi all,

Firstly, I'm new to this forum, so thank you for having me.

I've started a blog and it's got around 10 articles. There's not many pages and I'm not going to change the URL path.

However, I started with the domain: your-domain.com and yesterday: yourdomain.com was available, so I bought it.

As the site, is 8 weeks odd, in the short term it shouldn't have much impact on the rankings, as everything is on page 10.

My question is:

Is there a quicker way of doing domain level redirect in .htaccess?

Eg.

If: your-domain.com/blog-post can change to : yourdomain.com/blog-post

The old school way is redirect every single page. However, I'm looking for the page to be lightning fast, so if I can reduce the number of 301's that'll be smashing.

Thanks in advance

James

jimbojames85

jimbojames85

@jimbojames85

My BIO is empty. Try checking my profile later.

1
0 1