paulkallol
Member
Posted 4 months ago #
Hi all-
How do i redirect my old not existent links to a new link in Cpanel or thru WP dashboard? I have revamped my wp site but people still come to my site using old non working article links and land up in "Page Not Found" page. I want to redirect them to my new home page. How do i do that. I tried doing that from C panel/Redirects feature but started giving me errors. The tech support of my hosting company asked me to send this request in Word Press forum.
Example: I would like to redirect my non existent link "www.apple.com/?=1121" to "www.apple.com"
Please help.
richarduk
Member
Posted 4 months ago #
In your .htaccess file use something like this:
redirect 301 /oldpage.html http://www.mysite.com/newpage.html
I'm guessing in your example above it would like like this.
redirect 301 /?=1121 http://www.apple.com
Make sure your wordpress block of code comes AFTER the above.
Also note the space after 301
There's also a plugin here http://urbangiraffe.com/plugins/redirection/ that does redirect stuff
I use this one:
http://wordpress.org/extend/plugins/redirection/
It works very well. Easy to manage and so forth.
paulkallol
Member
Posted 4 months ago #
thanks Richard and Otto42. Will try with the plugins first and see. Will bother this forum again if it doesnot work.