Using a subdomain with WWW prefix
up vote
-1
down vote
favorite
I am having an issue with a client, because they use the website without WWW for an intranet, so they site only works with www inside the company network. I have fixed that but I'm having problems with for a subdomain to work, I cannot put the www in the subomdomain. Don't really know what I might be missing something.
First thing I have done was a redirect in htacess
#Redirect non-www to WWW
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
Option nº2 in DNS Settings, added:
www.subdomain.example.com CNAME example.com
Option nº3 in DNS Settings
Added an A
record for www.subdomain.example.com
with a value of 176.61.147.134
Nothing seems to work, what might be the issue around this? Do I need to wait an hours for the DNS to propagate also? I am using Plesk, not cPanel.
server subdomain
add a comment |
up vote
-1
down vote
favorite
I am having an issue with a client, because they use the website without WWW for an intranet, so they site only works with www inside the company network. I have fixed that but I'm having problems with for a subdomain to work, I cannot put the www in the subomdomain. Don't really know what I might be missing something.
First thing I have done was a redirect in htacess
#Redirect non-www to WWW
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
Option nº2 in DNS Settings, added:
www.subdomain.example.com CNAME example.com
Option nº3 in DNS Settings
Added an A
record for www.subdomain.example.com
with a value of 176.61.147.134
Nothing seems to work, what might be the issue around this? Do I need to wait an hours for the DNS to propagate also? I am using Plesk, not cPanel.
server subdomain
add a comment |
up vote
-1
down vote
favorite
up vote
-1
down vote
favorite
I am having an issue with a client, because they use the website without WWW for an intranet, so they site only works with www inside the company network. I have fixed that but I'm having problems with for a subdomain to work, I cannot put the www in the subomdomain. Don't really know what I might be missing something.
First thing I have done was a redirect in htacess
#Redirect non-www to WWW
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
Option nº2 in DNS Settings, added:
www.subdomain.example.com CNAME example.com
Option nº3 in DNS Settings
Added an A
record for www.subdomain.example.com
with a value of 176.61.147.134
Nothing seems to work, what might be the issue around this? Do I need to wait an hours for the DNS to propagate also? I am using Plesk, not cPanel.
server subdomain
I am having an issue with a client, because they use the website without WWW for an intranet, so they site only works with www inside the company network. I have fixed that but I'm having problems with for a subdomain to work, I cannot put the www in the subomdomain. Don't really know what I might be missing something.
First thing I have done was a redirect in htacess
#Redirect non-www to WWW
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
Option nº2 in DNS Settings, added:
www.subdomain.example.com CNAME example.com
Option nº3 in DNS Settings
Added an A
record for www.subdomain.example.com
with a value of 176.61.147.134
Nothing seems to work, what might be the issue around this? Do I need to wait an hours for the DNS to propagate also? I am using Plesk, not cPanel.
server subdomain
server subdomain
edited Nov 12 at 15:12
Patrick Mevzek
3,32591529
3,32591529
asked Nov 11 at 22:28
Carlos
378
378
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53253885%2fusing-a-subdomain-with-www-prefix%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown