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
-
Does changing/shortening a url hurt SEO?
Hi all, I am in the process of making small optimization changes to my site. I noticed Moz identified quite a few URLs that could be shortened. I intend to shorten these URLs and create 301 redirects to ensure website users land on the right page. My question is, will this change in URL damage rankings and engagement(assuming the URL remains content relevant)? I have read in some places that when creating URL redirects for a change in domain, people saw a dip in rankings and engagement. I, however, am not intending to change the main domain of the site, but rather the URL slug. Any thoughts?
On-Page Optimization | | annegretwidmer0 -
Is it better to shorten my existing url to use only keyword after domain with a 301 redirect from existing url
I have a long existing URL that has included my key word but the url has about 5 additional words in the text ( eg url would have " /super widgets in stock at the widget store " as url text after domain. keywords is super widget The URL was at the top of search results for my keyword for many years until recently. Is it better to shorten my url text to now use only my keyword " /super-widgets " after the domain with a 301 direct from my existing url to optimize it Thanks
On-Page Optimization | | mrkingsley2 -
Does having a \ on a URL make a difference?
On our website we have CMS pages which end normally without a /. However when linking from web banners e.c.t it always adds a / on the end. Will this have a negative impact on SEO?
On-Page Optimization | | AHF_Furniture0 -
Alot of 302 Redirects, what to do?
I'm currently auditing my companies website, and we encountered thousands of 302 redirects. The 302 pages are products page, which is a question and answer module at the bottom of each products page. What best practice should I do to get rid of the 302 redirects? add those pages to the .robots.txt? Or do individually and add a no index? This would help boost our rankings up correct?
On-Page Optimization | | petmkt0 -
Separate URL vs iFrame
Hi Everyone, I'm not a designer/developer and am an not extremely knowledgeable in SEO, but I'll try to be as clear as I can. One of the designers here is creating a recipe section on our website. He created it so that it's a container (or iFrame?) on the page. Basically, no matter what you click (different sections and recipes) the URL stays the same. I was told to find out from an SEO perspective if it's better to do things this way or have a separate URL for each section and recipe. It's been brought up that from a social/sharing standpoint separate URLs would be better so people can send a link directly to the specific recipe they want to share. Any thoughts/comments are appreciated! Thanks for the help!
On-Page Optimization | | AliMac260 -
Why do I have 2 different URL's for the same page - is this good practice?
Hi GuysMy father is currently using a programmer to build his new site. Knowing a little about SEO etc, I was a little suspicious of the work carried out. **Anyone with good programming and SEO knowledge, please offer your advice!**This page http://www.thewoodgalleries.co.uk/gallery-range-wood-flooring/ which is soon to be http://www.thewoodgalleries.co.uk/engineered-wood/ you'll see has a number of different products. The products on this particular page have been built into colour categories like thishttp://www.thewoodgalleries.co.uk/engineered-wood/lights-greys http://www.thewoodgalleries.co.uk/engineered-wood/beiges http://www.thewoodgalleries.co.uk/engineered-wood/browns http://www.thewoodgalleries.co.uk/engineered-wood/darks-blacks This is fine. Eventually when we add to our selection of woods, we'll easily segment each product into "colour categories" for users to easily navigate to. My question is - Why do I have 2 different URL's for the same page - is this good practice? Please see below... Visible URL - http://www.thewoodgalleries.co.uk/engineered-wood/browns/cipressa/Below is the permalink seen in Word Press for this page also.Permalink: http://www.thewoodgalleries.co.uk/engineered-wood/browns-engineered-wood/cipressa/and in the Word Press snippet shows the same permalink urlCipressa | Engineered Brown Wood | The Wood Gallerieswww.thewoodgalleries.co.uk/engineered-wood/browns-engineered-wood/cipressa/ Buy Cipressa Engineered Brown Wood, available at The Wood Galleries, London. Provides an Exceptional Foundation for Elegant Décor, Extravagant .. If this is completely ok and has no negative search impact - then I'm happy. If not what should I advise to my programmer to do? Your help would be very much appreciated. Regards Faye
On-Page Optimization | | Faye2340 -
New bookingsengine url, what would you do?
A client of mine is introducing a new and improved bookingsengine. They're launching it on a different url than the existing one. The existing one needs to stay online a little bit longer for affiliate purposes. The old engine url has a sitelink in the SERPS and ranks well on a few terms. I'm wondering what you would do in this case? They want the new url to rank as quickly as possible also as sitelink of course. Any help greatly appreciated. I have some thoughts of my own of course... 🙂 But to keep the discussion as wide as possible... I'll wait a bit to add m thoughts.
On-Page Optimization | | YannickVeys0 -
Disadvantages & Advantages for this e-commerce URL Structure
Hi all, Just a simple question. What's the disadvantages/advantages to using this URL structure for an ecommerce site: **Category structure: **/category **Subcategory structure: **/subcategory **Product structure: **/product Compared to the standard: /category/subcategory/product Thanks, Nick
On-Page Optimization | | NickPateman810