Jamesking56
Jamesking56

Reputation: 3901

Best way to handle permalinked users from my old website to new?

I have a website which contains links like so:

http://www.example.com/about
http://www.example.com/about-computing
http://www.example.com/about-web

I'm designing a new version of my website which will eventually replace the old.

How can I handle users with these bookmarked to my new website's format?:

http://www.example.com/about
http://www.example.com/about/computing
http://www.example.com/about/web

Upvotes: 1

Views: 38

Answers (1)

SubjectCurio
SubjectCurio

Reputation: 4872

You could keep your old structure and do a manual redirect on each page... But that could get messy very quickly.

Or much cleaner & easier to maintain, you could do it via the .htaccess file

eg:

redirect old-URL URL-to-go-to

so you could do something like

redirect /about-computing http://www.example.com/about/computing
redirect /about-web http://www.example.com/about/web
etc...

more information on this here

Upvotes: 1

Related Questions