Subdomain rewrite
-
Our old website had a staging subdomain that was used before I got with the company. We recently had the website redesigned, still on the DNN platform, but our staging subdomain is still showing up.
The domain, staging.structural.net, shows up in serps and needs to be redirected to just the root domain. What is the best way to get this thing from working.
If robot text is needed to get this subdomain from showing up, can you share? Also can you share the instructions you would use in iis to route this beast? Any advice is appreciated.
-
We ended up rewriting the subdomian in IIS. Thanks for your help Heather.
-
Hi there
We had a similar issue and just added:
User-agent: *
Disallow: /into a robots.txt file on the subdomain itself. This worked OK for us.
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
-
Gradual roll out of new webpages on temporary subdomain
I’m working for a company who is looking to gradually replace an existing website with a new website. They will replace the homepage, then a section, then another section, and so on, until the new site is complete. All new pages will sit on a temporary subdomain. So, for example, the URL for the homepage at the moment is www.domain.com, but as soon as the new homepage is ready, that will be launched on a temporary URL / subdomain - www2.domain.com - replacing the old homepage. The new pages will then gradually increase on www2.domain.com (so journeys will inevitably move across domains) until the whole of the new website is ready on www2.domain.com - at which point it will move on to www.domain.com. I know this isn’t a good way of doing things - I would much prefer the new site is completely built and then it just replaces the old site with the necessary 301 redirects in place - but the company wants to see the gradual roll out of new page designs. So, my question is, what’s the best way to manage this without negatively impacting rankings for the existing domain (www.domain.com)?
Web Design | | RWesley1 -
App indexing with several subdomains
Hi, We are currently in the process of getting our app developed. From an SEO point of view I want the app to get indexed and am currently trying to get a step by step guide for it. I've come across this helpful guide: https://moz.com/blog/how-to-get-your-app-content-indexed-by-google but need to go a bit deeper now. Questions I have is related to the "apple-app-site-association" file As far as I could find out the JSON code of that file has the following syntax: {_ “applinks”: {__ “apps”: [],__ “details”: [__ {__ “appID”: “9JA89QQLNQ.com.my.bundle.id“,__ “paths”: [ “/myPath1”, “/myPath2/*” ]__ },__ ]__ }_ } My question is related to the key "appID" I'm wondering how the entry would look like if I have 10 country subdomains and would like to make sure that the deep link clicked in the browser is going to the right subdomain page within the app. Current website structure:
Web Design | | FashionLux
uk.example.com/english-path/
de.example.com/german-path/ Many Thanks in advance0 -
How to rewrite/redirect a folder name with .htaccess
I have a folder in my site that I want to rename. I don’t want to just rewrite the URL and keep my old folder name, I want to change the folder name and then do whatever is necessary with .hataccess to not lose search engine rankings. The folder name I want to change has a space in it and also is misspelled (whoops x2) Example. Mysite.com/old foldr/page.html Mysite.com/newfolder/page.html How would I go about doing this with .htaccess? Do I just switch the folder name on my server and then set up a redirect, or do I do a rewrite? Sorry now familiar with the terms or .htacces. Thanks all
Web Design | | SheffieldMarketing0 -
HTTPS redirecting to subdomain; do I need to 301 to HTTP first?
Hello there, quick question on HTTPS downgrade to HTTP. Originally, full site was HTTPS. Redesign eliminated need for secure layer. Site currently has https 301'd to sub.domain.com. Ideally, site would live at domain.com, but with the old site having been indexed https, the security warning triggers when you visit, hence the 301 to a subdomain. Thinking possible solutions here are to a) add back in secure layer or b) 301 all old https pages to new http pages. Have I overlooked something? With (a), I will see no SEO impact, correct? With (b), can I expect impact similar to a relaunch? Have seen a lot of chatter that there is some impact in switching http to https, but not much the other way. Any help much appreciated!
Web Design | | alimo0 -
Mobile subdomain?
Hi, We are setting up our mobile website. Should we use a Subdomain ie m.mysite.com or should we display different content under the same domain? We are worried that we are stripping out some content and images from the mobile version that could adversly affect our SEO. Thankyou
Web Design | | ryanryan0 -
Subdomain or Start over?
I have a site that is currently set up geo-targeted in sub-domains. So each geo is princeton.site.com. Each site has the same code, design, but the events listed are different. There are about 30 subdomains and they are looking to expand nationally. After the Panda update, I am seeing that it looks like they should stay as sub-domains rather than redirecting everything or setting up new domains. Any thoughts on if the sub domains should stay and expand exponentially? SEO strategy, etc.? I'm also worried about the possibility of duplicate content. Thanks!
Web Design | | PPI0 -
Technical SEO Question about TLD combined with SubDomain
I am making a new website but need to figure out the best way to do this in terms of SEO. I would like the website to have functionality of brochure website combined with an online store. My issue is that I will be using software called prestashop for my online store and CMS called MODx to develop my brochure site. (These can not be combined into one CMS). I can create brochure site with MOdx = www.example.com & then from that a subdomain using prestashop for my online store = store.example.com Can I get Google to index these as one site or would I be better off trying to get everything under the TLD. Ideally I would like just one site without subdomain Bacially what I am asking is... What are the effects of having subdomains in terms of SEO? Am I better of having everyhitng under TLD? Can I get Google to view TLD and Sub as one site? Hope this makes sense, thank you.
Web Design | | Socialdude0 -
What will you do with the subdomains, keep it or remove it?
A client of us has this webpage http://www.losestores.com/ not very good in design, but it has good products.
Web Design | | teconsite.com
He is having a problem with SEO, he is in page 2 for "estores" keyword. His domain authority is 27 and is upper than other domains that are ranking in page one. The question is the following: Since the webpage began to work the programmer that created it, did the following: a subdomain per section http://estores.losestores.com/ http://cortinas.losestores.com/ http://venecianas.losestores.com/ and so on. This page is not very big one. Will you remove the subdomains and do de following? www.losestores.com/estores www.losestores.com/cortinas What will be best? Thanks Victoria0