New answers tagged

2

You are close. RewriteCond %{HTTP_HOST} ^sub-domain\.example\.com$ [NC] RewriteRule ^(.*)$ https://www.example.com/newpage.html [R=301,L] --or-- RewriteCond %{HTTP_HOST} ^sub-domain\.example\.com$ [NC] RewriteRule ^(.*)$ https://www.example.com/folder/ [R=301,L] I included the second example in case you want it. I also use R=301,L though R,L is the same ...


1

htdocs is usually usually the document root for your main domain example.com. I'm assuming that you mis-typed your example and that it is actually example.com/sd that gives you the same result as the subdomain. It is not advisable to create sub-directories of that to house sub-domains. Instead you should use a completely different document root. For ...


0

I would first set up the hosting and cnames with heroku. Then I will proceed to implement cloudflare.


1

Google views subdomains as separate websites, and as such they're ranked separately. As @closetnoc pointed out above, in the eyes of search engines, the subdomains have their own ladder to climb. Some companies have strategically used subdomains to dominate the SERPs. If your main domain ranks #1 for a certain search query, and your subdomain ranks #2, you ...


0

I have access to create A .... records And that's what you need to do. You need to create an A record on the subdomain that points to the "other hosting package". Specifically, the A record contains the IP address of the server that hosts your website. If you change the NAMESERVERS (ie. the server that manages your domain's DNS) then it will no longer be ...


2

SSH can use a domain name. ssh uname@example.com/me -p 1234 would not be correct, however, the /me may be ignored and still work. You should not need to use ssh uname@me.example.com -p 1234. In fact, this would take some configuration changes to make work when it should not be necessary at all. What should happen is this. If you use your domain name, it ...


-2

You would use the cname DNS record for that


Top 50 recent answers are included