We are currently building a site on our server that will eventually take over a current site. The problem we are running into is that all of our hyperlinks will change once we transfer over to the new site. Is there a way to link pages without hard coding in the URL?
You will probably want to use mod_rewrite to rewrite your URL from the old format to the new format. You might start at http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html. If you search on mod_rewrite, you will be able to find lots of examples and tutorials to help you.
Related
I have migrated a website, and now having issues with users that have saved certain pages and pdfs as bookmarks and are now getting broken link errors. I need the links to go to the same areas on the new site.
I assume it will be some type of code needed to be added to the .htaccess.
Here is an example:
Old URL: "www.oldsite.co.nz/things/stuff/thisisapdf.pdf"
Needs to go to
New URL: "www.newsite.co.nz/files/thisisapdf.pdf"
Your help will be much appreciated
I think there are two ways you can go about this using plugins.
1) https://wordpress.org/plugins/all-in-one-wp-migration/
- This is great when migrating or moving sites, as it automatically can repoint the urls for you when you reupload.
or 2) https://wordpress.org/plugins/redirection/
- This will allow you to change the urls on a case by case basis. This is recommended if you don't have too many broken links.
I have a WordPress site. which is now moving to asp.net cms (Sitefinity). In this process my url structures are getting changed but I want to keep the traffic of previous urls on the new urls as well.
Old as the domain will be transferred to new site old pages will not be found (404)
Things making it complicated.
Old and new site has lots of Dynamic urls
Old site has different urls structure than new url
I do not wan't to put all these urls in web.config file.
Solutions I tried
I tried to write 301 redirect on Robot.txt as I can capture old and new url at the time of migration
I searched for solutions all over net but didn't got any straight forward solutions
One of the forums mentioned that we should not write 301 redirects on Robot.txt
Don't know what to follow or where to search. Please guide me to correct path.
Thank You
Chandresh
If you have an identifiable pattern between the two using the URL rewrite module would be your best bet. Or write some code to insert the old urls as multiple URLs on the content items.
Do you have an example of the old URL and what the new URL will look like? It is possible that if you know how the URL pattern will change you can create a redirect rule in your web.config.
Also, Sitefinity allows you to create redirects as well. This includes creating alternative urls for pages or creating redirecting pages.
The exact solution really depends on how much the URL is changing and how many redirect urls are needed.
I would like to migrate a site, but the new URL's are completely different from the old URL's. I do not want to break my old sites links that are out there on the web. Is there a way to extract all the links from a site so I can generate a redirect table (I will probably put the redirects on the web server level)? The old is on ASP.NET with SQL server 2008 by the way. Am open to crawling the site or mining the SQL database, but need some help or advice.
You could use IIS Seo Optimalization Toolkit for that. http://www.iis.net/download/seotoolkit
With that tool you can spider the entire website. Then when the report finishes, go to Content -> Host summary and double click the host of the website. There you have a complete list of all spedered URL's.
And ofcourse, when you have these url's, you can make URL rewrite of routing mechanisms available to 301 to the right content on the new website.
The best way is to actually put a 301 redirect to notify all engines that your URL's have permanently moved Search for 301 in this http response code documentation for more info on 301. That is if I am understanding your problem (that you want links from other sites and searches and whatnot to realize that your site moved?).
It doesn't sound like you're running Apache. However, Apache has an available module called mod_rewrite. There may be a similar module for other web servers.
mod_rewrite allows you to do exactly what you are describing.
Perhaps with litle js magic if works for you
i've a small website(with few of pages-- max 20) on asp running on windows server since last 3 years with a lot of traffic and all the pages are indexed and ranked high by google and other search engines, but now i decided to convert my existing asp website to wordpress on that same domain and host.i'll request the godaddy to change my hosting server from windows to linux, and that i'll install wordpress there and i'll recreate all 20 pages there, but the matter is that i'll lose my all traffic.is there anyway to redirect those asp indexed links to my new wordpress posts?
any kind of help will be appreciated-- Thanks in advance :)
You can use 301 redirect to redirect all your old asp urls to the new wordpress urls using htaccess.
http://ndesign-studio.com/blog/301-htaccess-redirect
You have only 20 pages so it would be easy for you to do it manually i think. Thanks
I found the following plugins to easily manage 301 redirects. Please use any of the one given below.
http://wordpress.org/extend/plugins/redirection/screenshots/
http://wordpress.org/extend/plugins/simple-301-redirects/screenshots/
You just need to put the old asp url without the domain name and the new wordpess url with domain name. Thanks
Keeping the existing SE rankings must be the top priority and for that you have no other option but use 301 redirect.
It's good to know how 301 redirect works; so this article may be useful;
http://www.seochat.com/c/a/Search-Engine-Optimization-Help/WordPress-301-Redirect-Tips-and-Techniques/
Since you will be porting your site into wordpress, it makes a lot of sense to use a known plug in for this particular task.
As always, download a known/rated/trustworthy/uptodate plug in.
Here is one that fits the bill, for you.
http://wordpress.org/extend/plugins/simple-301-redirects/
HTH
I currently have a small-midsize website with .htm extensions. I have redesigned the full website, this time using a .aspx extension. I want to issue 301 redirects to keep my search engine rankings, but am unsure of how to do so from an .html page in a spider friendly way. With research I have repeatedly encountered references to ISAPI redirects (but no where can I seem to find a full explanation, just a link to isapiredirect.com, which does not load). Other than this I have been advised to run all .htm pages through the asp.net engine and issue a redirect through asp code. I have no idea how to get that done.
I am unfamiliar with asp.NET (the new site was not designed by me), and only with LAMP, which seems far more simply managed with .htaccess.
Thank you so much for any help, time, considerations or suggestions
You can use a .htaccess file if you get a license to the Helicon's ISAPI Rewrite module. It might be a familiar environment for you. But you are right, the home page doesn't load.
http://www.seoconsultants.com/windows/isapi/
Here's a link to some information about the product. It does work, it's a good product. I'm not sure I'd recommend ordering it while the vendor's site is down though.
EDIT
The vendor site is back up and here: http://www.helicontech.com/isapi_rewrite/