Metatag keywords in htaccess? - .htaccess

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.

Related

Best way to Redirect

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.

Same website on same domain name with different extensions - i.e. .com and .co.uk

What is best practice for doing this? Should I have duplicate content at each domain or should I redirect from one to the the other, i.e. all traffic to the .co.uk domain redirected to the .com domain?
Best practice is to send them all to one web server.
By default the server will not care which domain is pointed at it and will show the home page as domainx.com if you to it from domainx.com.
However there are two possible issues with this that come to mind:
The person who created the website hopefully only used relative links. (The contact us button points to contactus.htm instead of http://domainx.com/contactus.htm ) If not, some links might change the user from domainx.co.uk to domainx.com.
Search Engine Optimisation: Its better SEO wise if all the links to your site point to one domain name rather than appearing as several less popular sites.
You can get everyone on the same site by using a RewriteRule or 301 Redirect to the primary site. Or you can make every hyperlink on the site absolute and point to the primary domain.

Block Bots from crawling one of my sites on a multistore multidomain prestashop

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.

Redirect a new domain name to existing website in .htaccess?

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

Htaccess.. changing the domain name

I have a big Joomla website that was moved from .com to .eu domain.
The sites are on one web server.
On the old website there are a lot of links that point directly to oldwebsite.com/somethinghere.
Is there a way with Htaccess file in the old domains folder to redirect
from oldwebsite.com/somethinhere to newwebsite.eu/somethinghere?
Or maybe a way to do this on the new website folder?
Thank you,
Chris.
There are many ways, some people recommend using RewriteEngine, but there is an easier way:
Redirect 301 / http://domain.eu/
This will automatically handle files in the domain -- for example, old.com/foo will be redirected to new.eu/foo
EDIT: Regarding "301", that is the code for a permanent redirect. There also exist temporary redirects (I believe the code is 302), but it sounds like what you need is exactly this - a permanent redirect.
EDIT2: Oh and, I think the / after domain.eu may be required, but I'm not 100% sure - doesn't hurt for it to be there, that's for sure! I know that because I use the same kind of a redirect on a production website.

Resources