Redirecting URLS on windows
-
Could anyone help out here please.
A client of ours have reveloped their website from HTML to ASP (helpful!). They have 60 odd pages indexed in Google with the .html extension. We need to do a redirect on these pages so that all link juice is passed to the new pages.
What would be the best way to do this please?
-
Hi Mister G,
.htaccess files are the means used for creating redirects in a LAMP setup using an Apache server.
To create redirects on a Windows box you need to use a quite different method.
This quick reference chart for creating redirects should give you the information you need for most normal redirect situations.
However, when working with .htaccess we would normally create a single rule that redirects all .html files to the .aspx file of the same name. Ours is a LAMP shop, so Windows is not our forte, but I believe you can do the same thing with the proviso that your server is set up for it. A little hard since I don't know exactly which Windows Server setup you are dealing with, but This link might help you out in doing that.
Hope that helps,
Sha
-
Thanks Ak1lz
Do htaccess work on a Windows server? I was under the impression they didn't
-
Gather a list of all the old HTML URL's
Gather a list of all the new ASP URL'sFind your .htaccess file. Edit it and start adding this,
Redirect 301 /old-file.html http://www.domain.com/new-file.asp
for each of the old/new URL's
Hope this helps, more info can be found here. Remember the best way would be to do it the right way!
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
301 Redirect chain
I've got a redirect chain happening
On-Page Optimization | | Libra_Photographic
http > https> https.www. I can't find how to fix this one. My site is on siteground which forces the https at server level and then onto cloudflare. Anyone have any ideas?0 -
Weird 404 Error URL's - Where to redirect?
For some reason, I end up with a bunch of weird 404 error URLs like these. /KRVWZ/SVfSZ/ /wp-content/upl /MKWTZ/RKYQZ/ /wp-content/upload What should I do with them? Should I redirect them or is there a better way to do something with them. I do use Yoast Premium if that makes a difference. Thanks in advance.
On-Page Optimization | | photoseo10 -
To update or not to update news URLs ?
We manage a huge daily news website in my small country - keeping this a bit mysterious in case competitors are reading 🙂 Our URL structure is www.companyname.com/news/categoryofnews/title-of-article?id=articleid In this hyperreactive news world, title of articles change frequently (may be ten times a day for the main stories). The question we debate is : should we reflect the modification of the title in the URL or not ? Example : "Trump says he wants to ban search engines" would have URL http://www.companyname.com/news/entertainment/Trump-says-he-wants-to-ban-search-engines?id=12345678 Later in the day the title becomes "Trump denies he suggested banning search engines". Should the URL be modified to http://www.companyname.com/news/entertainment/Trump-denies-he-suggested-banning-search-engines?id=12345678 (option A) or not (option B) ? In Google News it makes no difference because of the sitemap, but in Google organic things are different. At present (option B in place), Google apparently doesn't see that the article has been updated, and shows the initial timestamp which is visually (and presumably SEOwise) not good : our new news looks like old news. Modifiying the URL would solve that issue, but could, may be, create another one : the new URL, being considered a new article, would lose, the acquired weight of the previous one in terms of referrals, social trafic and so on. Or not ? What do you think is the best option ? Thanks for your expertise, Yves
On-Page Optimization | | yves678901 -
URL structure for professional services across multiple industries
I am working with a company who does consulting work across multiple industries, but the services are essentially the same. Example Services: They implement "Customer Relationship Management" systems and "Data Archiving" Solutions. Example Industries: The services above can each apply to "Oil & Gas" or "Retail". Example URL Structures: mysite.com/oil-gas <-- This page would also contain links to all of the services provided to the Oil & Gas industry. mysite.com/oil-gas/customer-relationship-management-system mysite.com/retail mysite.com/retail/customer-relationship-management-system This seems like the best way to go, as long as i'm writing unique content, for each industry, for each service (i.e. I need to explain how a CRM solution solves specific problems in retail and OTHER specific problems in Oil & Gas). While there will certainly be some overlap, this approach seems logical to me. The URL length isn't too long either, which is nice. The company currently solely focuses on services in URL structure (not a very deep site): mysite.com/customer-relationship-management-system mysite.com/data-archiving Since they have already worked with hundreds of clients in multiple industries, it seems smarter to start focusing more on individual customer segments. Would anyone else do this differently? Thanks, Alex
On-Page Optimization | | MeasureEverything0 -
Language for URLs on new international websites
We are due to launch our new site and it will be targeting an international market. We have setup these new sites in the following way www.website.com/fr/content-goes-here www.website.com/es/content-goes-here This has been done in conjunction with setting up the parameters in GWT and making sure it is optimised for the language itself, and that countries search engine. But our web dev team have said that the URLs at the moment will be in english and not the native language, so if you were on the french version of our site you would see the url in english and not french. Will this negatively affect the site for SEO, and who else would think it would be negative from a usability perspective? Any help is appreciated.
On-Page Optimization | | RyanCrawf19840 -
Reverse 301 redirect - how will that work?
Hi We have done some testing where we have changed our URL to a new name and 301 redirected the old to the new. It has now been decided to go back to the old url again but is there an seo risk to this? Will all the inbound links that as redirected in the first change be lost or?
On-Page Optimization | | AndersDK0 -
How much juice do you lose in a 301 redirect?
Our site has a number of, shall we say, unoptimized URLs. I would like to change the URLs to be more relevant; if a page is about red widgets, the URL should be www.domain.com/red-widgets.html, right? I'm getting resistance on this, however, based on the belief that you lose something significant when you 301 an old URL to a new one. Now, I know that if you have a long chain of redirects, the spiders will stop following at some point, and that is a huge problem. That wouldn't apply if there's only one step in the chain, however. I've also heard that you lose some link juice in a 301, but I'm unsure how serious that problem actually is. Is it small enough that we'd win out in the long run with better-optimized URLs?
On-Page Optimization | | CMC-SD0 -
Question regarding two versions of a page (redirect)
At one point in my SEO journey I had noticed some duplicate issues going on in Google webmaster tools (I could have been reading it wrong.) It looked like WMT was saying I had 2 versions of some of pages...it looked like pages that ended in a '/' ranking differently than pages that have no slash at the end. So I downloaded the redirect plugin and redirected many non / pages to the page that end with the "/". This was probably a mistake. but I'm trying to clean all of that up. (I'm also noticing that SEOMoz tools tells me my site has many, many redirected url's. I'm not sure why. I was looking at http://www.opensiteexplorer.org/pages?site=noahsdad.com%2F this morning at my top pages and it shows 2 versions (one being redirected) of the page about my son who was born with Down syndrome. (Noahsdad.com/story and Noahsdad.com/story/) I don't know if I've built rankings for those pages separately and it would now hurt me if I did away with the redirect. I'm not sure why I did the redirects (I must have read something online somewhere.) I'm wondering if someone wouldn't mind looking at the report and letting me know what the best way to 'clean' this stuff up...Should I go into the redirect software and delete all of the redirects where the non / page is being redirected to the / page? Thanks.
On-Page Optimization | | NoahsDad0