11 Vote

Redirect entire Website to other URL

Question by Chematik | 2016-06-12 at 15:18

I have changed the folder structure of my website as part of improvements. However, the old links can still be found via the search engines and there are also many links from other web pages linking to the old URLs.

Of course, despite that change, I don't want to lose any of my visitors still using any of the old links and in terms of SEO, I don't want the whole thing to be a total flop either!

So, what can I do to redirect my entire website to another URL structure?

ReplyPositiveNegative
3Best Answer3 Votes

Just write the following into your HTACCESS file:

redirect 301 /old https://www.example.com/new

With this, you are redirecting all queries to the URL "old" to "example.com/new". Of course, you have to replace "example.com" with your website and you have to adjust "old" and "new" accordingly.

You initiate the redirection together with the HTTP status code “301 Moved Permanently”. This indicates that this redirection is permanent.
Last update on 2024-01-16 | Created on 2016-06-12

ReplyPositive Negative
Reply

Related Topics

HTACCESS: Simplify URL

Tutorial | 0 Comments

Important Note

Please note: The contributions published on askingbox.com are contributions of users and should not substitute professional advice. They are not verified by independents and do not necessarily reflect the opinion of askingbox.com. Learn more.

Participate

Ask your own question or write your own article on askingbox.com. That’s how it’s done.