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
-
Using the Same Word in Every URL
Just looking to get some opinions on this. Some coupon sites use "coupon" in all of their URLs - this is a practice I would avoid, as to me it is a little spammy. For example:
On-Page Optimization | | vanessakohl
.com/amazon-coupons/
.com/ebay-coupons/
.com/walmart-coupons/
... and so on for thousands of other brands. I don't think this is necessary, as Google will understand from the content, backlinks and the domain name (including the word "coupon") that brand pages are coupon-focused. Any other thoughts on this?0 -
Long Url but makes no sense
Hi Just joined. Crawl states that I am getting a lot of errors, looks like the spider is getting confused and looping back on itself ? Is there a way to see where the crawl was formulated (ie where from) ? It is generating urls like: http://www.wickman.net.au/wineauction/wine_auction_alert.aspx/auction/auction/auction/auction/auction/auction/Default.aspx from http://www.wickman.net.au/wineauction/wine_auction_alert.aspx
On-Page Optimization | | blinkybill0 -
Popup windows are coming up as 404 error in moz reports.
We have several links showing up as 404 errors because of the way our site is set up. I want to know if this is hurting our ranking because Google sees it as 404 errors or is it just something I can ignore because it works for the user? If it is hurting our quality and therefore our rankings, how can I correct it so that best practices are used? I have attached an image of the links and here is an example page --> http://www.sourcemedicalequipment.com/Perch-Polyurethane-Industrial-Stool-18-25-p/idst2.htm The links in the description section have anchor text "All 3 Choices" and result in a popup information page. If you cut and paste the URL's that they are redirecting to end in a 404 but if you use the link on the page it results in a popup information window. Hope I explained that well. Thanks for your help! wrEmQnwWQo
On-Page Optimization | | BenRWoodard0 -
If you were working on a wine site would you include the wine year in the URL?
I've come across a case where I'm asking myself what the best direction would be to go and while there is no right direction I would like to here some feedback from others. I'm working with some great content pages all about wine. As you probably know the difference between a 07 wine and a 95 is vastly different and up to this point I'm using the full year in the url much like this: grapesinyourtoesexample.com/2007-cellar-pod-viognier-adelaide-hills/. What I'm worried about is my use of the year in the URL. I feel it's very important for it to be used in the page title and on page but I'm concerned that it might be setting me back with my use of it in the url. My concern is that search engines might be interpretting it as a datestamp rather than as a informational piece of data describing the asset. Looking at my competitors, my content is one of the only sites using the year and in most searches for various wines my content is in the second half of the SERPs. If you were creating this content would you use the year? If you were working with current content would you drop the year across all of the site and implement to necessary redirects? Just to be clear this is a client related project so my use of "my site|my content" refers to the client's content.
On-Page Optimization | | DotCar0 -
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 -
Rename index.php or keyword in URL?
It is important for me to get good search results for keyword + city name For instance: tulips amsterdam What would be better: renaming index.php or adding the cityname to the URL? www.example.com/amsterdam/tulips OR www.example.com/pages/tulips-amsterdam
On-Page Optimization | | svdg0 -
Should I fix 302 redirects?
I have a Magento ecommerce site that allows customers to compare products. When SEOmoz crawled the site, it came back with over 6,000 302 redirect errors related to the compare products feature. Is this harming our rankings? And any suggestions on the best way to fix it?
On-Page Optimization | | AmazingPlans0 -
Absolute vs relative urls
Hello, Should absolute or relative urls to be used for the internal links? I heard mixed opinions on that: One source claims that web crawlers prefer absolute urls as they are more understandable Other source points that there is no difference for web crawlers what urls are used and relative urls are shorter which reduces the size of a page. Which option is recommended? Many thanks Darius
On-Page Optimization | | LinenMe0