I currently have my Online Store as a Sub-Domain of my main site and my host is having all sorts of trouble getting the "wildcard" ssl certificate to work with the redirects and the CDN.
I am considering just moving the store to a sub-directory of the main site to rid us of the wildcard ssl.
My concern is that the Search Engines have the Store indexed as https://store.xxxxxxxx.com. When the wildcard ssl is gone and the sub-domain is no longer https how do I go about redirecting from the Sub-Domain to the new Sub-Directory.
Thanks
You can use Redirect in your .htaccess to redirect the user. This will require you to keep the subdomain operational.
Redirect 301 / http://example.com/store/
The 301 is a permanent redirect. Search engines are usually smart enough to index this result permanently.
I recommend you also notify the search engines with your changes to speed up the process. This process is different for each search engine.
Related
Hello i have a multistore multidomain prestashop installation with main domain example.com and i want to block all bots from crawling a subdomain site subdomain.example.com made for resellers where they can buy at lower prices because the content is duplicate to the original site, and i am not exacly sure how to do it. Usualy if i want to block the bots for a site i would use
User-agent: *
Disallow: /
But how do i use it without hurting the whole store ? and is it possible to block the bots from the htacces too ?
Regarding your first question:
If you don't want search engines to gain access to the subdomain (sub.example.com/robots.txt), using a robots.txt file ON the subdomain is the way to go. Don't put it on your regular domain (example.com/robots.txt) - see Robots.txt reference guide.
Additionally, I would verify both domains in Google Search Console. There you can monitor and control the indexation of the subdomain and main domain.
Regarding your second question:
I've found a SO thread here which explains what you want to know: Block all bots/crawlers/spiders for a special directory with htaccess.
We use a canonical URL to tell the search engines where to find the original content.
https://yoast.com/rel-canonical/
A canonical URL allows you to tell search engines that certain similar
URLs are actually one and the same. Sometimes you have products or
content that is accessible under multiple URLs, or even on multiple
websites. Using a canonical URL (an HTML link tag with attribute
rel=canonical) these can exist without harming your rankings.
I have a domain e.g. named www.example.com, when people type in example.com, it still can be accessed, but won't automatically add that 'www' to the url.
But as for website like facebook, if you type in facebook.com, it'll automatically add that 'www', BEFORE loading the page for you.
Probably I didn't explain it well, but guess you see the difference and get my point anyway.
So how can I make my domain acts like facebook, when people type example.com, it'll automatically add that www for them?
EDIT:
Ok, so I need a redirect to the 'www' subdomain. Actually I'm using nodejs, which hosted on Amazon EC2, to serve the webpage instead of Apache HTTP. So any equivalent of .htaccess in nodejs area?
I guess now the question shifts to more nodejs oriented, and it turns out it becomes a redundant of this thread:
Redirect all requests using Express 3?
Thanks all for your help.
you have to set your domain 301 permanent redirect in your control panel.
if your website is hosted in CPANEL then
GOTO -> Redirects in ( Domains Menu )
Choose the type Permanent (301)
choose your domain.com
www.domain.com in redirects to→ __
check the box on Redirect with or without www
finally CLick ADD
if your website is hosted in PLESK then
do it in your program level
or
plesk11.0.29 version above supports the 301 peramanent
You can do all of this with a .htaccess file.
https://kb.mediatemple.net/questions/242/How+do+I+redirect+my+site+using+a+.htaccess+file%3F
# This allows you to redirect your entire website to any other domain
Redirect 301 / http://mt-example.com/
Add this in a file named .htaccess on your host, but set it to the URL you want your main page to be.
To make a .htaccess file, you can always go in FTP, upload an empty .txt file, open it with notepad, put in the lines of code above, then rename it to .htaccess.
I am managing a website (www.faa.net.au) which is currently running as a standard http:// website.
I am now looking at capturing some information that needs to be confidential. In order to do this, I am looking at purchasing an SSL Certificate for this particular domain.
I have 2 questions really:
Will my Rankings be effected at all?
Will I need to set up 301 redirects if there are links that are referring to http:// instead of https://?
Gong HTTPS will not negatively affect your page rankings. And yes, you should set up a 301 redirect unless this is a temporary change.
In a nutshell, the search engine bots connect to the pages as normal, so it doesn't matter if it's using SSL/TLS or not. The 301 will pretty much update the bots with the current information.
Going https will actually positivly affect your site's SEO as Google has now introduced it as a ranking factor. http://googlewebmastercentral.blogspot.co.uk/2014/08/https-as-ranking-signal.html
I have register a new domain name (example.com.sg) without hosting server, but my existing website (example.co.uk) has hosting server with all scripts, content, and database.
How to pin point my new domain name to current website in [example.co.uk]'s htaccess file?
Or any other way to redirect that page when visitor type the URL domain name (example.com.sg) in browser and goes to my website (example.so.uk) ?
I'm not sure what you're wanting to do, but if you don't have a hosting server for a domain, you will not be able to have a .htaccess file (since it would need to be hosted) and therefore would not be able to redirect in that fashion.
Like I said though, I don't really understand what you're asking.
However, a redirect from one domain to some other would look like this:
Redirect 301 / http://example.co.uk/
That would send all hits to the root directory to example.co.uk.
This is what domain parking do. Go to the cpanel of your example.co.uk site and select parked domains. Then park example.com.sg on example.co.uk
I'm running a website with 3 domains redirecting to that domain (without a index file, just by admin panel at the provider). Is there a way to SEO these redirecting domains? When I was thinking about this I realized that by redirecting you probably can't upload a .htaccess because you don't have webspace.
I think it's not possible, but i ask is just to be sure.
You're right - it's not possible to SEO a domain that simply redirects to a different domain.
Meta tags / data won't get you any SEO benefit anyway - it's all about content and authority.