We have a website with files on two servers. One server has a subdomain (home.sitename.com). The other is just www.sitename.com.
We have it set up (w/ A-records) so that the domain servers point files with the "home" subdomain to the server with the subdomain "home", and pages with the "www" prefix to the other server.
Now, would it be possible to redirect the www.sitename.com homepage to the home.sitename.com homepage with a mod_rewrite in the htaccess file on the server with the "home" subdomain? Or, would the mod_rewrite need to be in the "www" server's htaccess file?
A little complicated, I know. I'll try to clarify more if needed. Just wondering if this is possible. Thanks!
I have 2 separate A records pointing to the same IP address:
example1.domain.com -> IP
example2.domain.com -> IP
"example1.domain.com" currently points to the root public_html folder (where wordpress is installed)
I would like the second, "example2.domain.com" to end up in:
public_html/example2folder - (where i have installed magento)
How do I edit the .htaccess file correctly to achieve this? Please help!
I have multiple A record for the same server IP address, I mean:
URL DNS res.
I would like to configure Apache2 so that it works only with URL goodurl.com and not with any other.
I've found the way to give "access denied" on specific URL "badurl1.com" like this :
deny from all
Is there a more elegant and efficent way to do the same?
Is there a way to configure Apache to be sure that any other future and undesired new A record, will be rejected by default?
thanks in advance for your help
system SO: Linux 2.6.32-5-amd64 x86_64 GNU/Linux
Server version: Apache/2.2.16 (Debian)
yesterday I have connected up my new domain (let's call it domain.net) using an A-Record to my V-Server, let's give him the IP-Adress 18.104.22.1680. Now it should be well configured (on the online panel they said it would be done in less than 24h). Then I set up a apache2 vhost with the following content:
Redirect 301 / http://www.domain.net
Redirect 301 / http://www.wiki.domain.net
When I now want to browse to domain.net, I get a blank page. If I ping it, I get an answer from 127.0.0.1 . Now I thought, this is strange, but when I asked some friends to do the same, they all get the same result.
Looking forward for your answers,
I was going through this answer about how to create subdomain. I used to create subdomain in my Linode server by adding a A record and then creating a virtual host. What different does it makes to create subdomain using A record and by editing /etc/hosts. Which is better way ? Also should I use CNAME record for it ?
I have a website that every customer can have a personal profile page. A sample page address is :
and I want to point a domain name to this specific url. For example when visiting www.mycustomer.com it shows the content of the above address (without changing the address).
How can I do this?
I am setting up a Shopify site using a custom domain. However, I have old links on that domain that I don't want to break once I point it to Shopify. I also have old parked domains on top of this domain that I don't want to break.
Shopify instructs you to set up an A record for the domain (so when I go to www.mydomain.com I see my Shopify store). But I want to set up exceptions such that www.mydomain.com/my-seo-link won't show Shopify, or will allow me to forward to its replacement at Shopify.
An added complication is I also have parked domains on top of my domain that I want to remain pointing to my old server.
Is there such thing as a URI exception to an A record?