www or no www
My personal preference is going naked, but it doesn't really matter. Just choose one and redirect the other to it. Don't use both and not use a redirect because it's not ideal for SEO.
Soylent Green is People!
- TheButcher
- Posts: 10475
- Joined: February 2nd, 2018, 11:48 am
- Title: I like weekends
- Referrals: 1
- Contact:
Old habit I always set up scripts with the www but in my htaccess I have a line if you need it I will get it which redirects the non-www to www.
-
- Posts: 622
- Joined: April 10th, 2018, 9:07 pm
- TheButcher
- Posts: 10475
- Joined: February 2nd, 2018, 11:48 am
- Title: I like weekends
- Referrals: 1
- Contact:
Technically the www is a subdomain if you think about it
Yep, it is. If you look at your dns settings you'll see that the www sub is pointed at the same location as your naked domain. That's usually the default setup. You could actually change that if you want. There's no rule saying that's what you have to do.TheButcher wrote: ↑March 12th, 2023, 2:35 pmTechnically the www is a subdomain if you think about it
Soylent Green is People!
- Zug
- Posts: 81
- Joined: February 11th, 2023, 9:19 am
- Location: America
- Title: Confirmed Caveman
- Referrals: 4
- Contact:
Choose one or the other and stick with it. Either way, use your htaccess file to determine which one is used through-out your domain. People, generally, will not type in www. Unless they live in a cave and have no clue of internet usage.
Web Model Portal - A model portal dedicated to beautiful girls and their hot model photos. Webmodels • Webmasters • Webhosting
©2003-2023 by Zug™
©2003-2023 by Zug™
-
- Posts: 933
- Joined: May 22nd, 2018, 6:47 pm
- Title: work hard play hard
Read the underlined sentence
- Zug
- Posts: 81
- Joined: February 11th, 2023, 9:19 am
- Location: America
- Title: Confirmed Caveman
- Referrals: 4
- Contact:
.htaccess file .. works on my server but may not on everyone else's.
Code: Select all
# Redirect www urls to non-www
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.YOURDOMAIN\.com [NC]
RewriteRule (.*) https://YOURDOMAIN.com/$1 [R=301,L]
Web Model Portal - A model portal dedicated to beautiful girls and their hot model photos. Webmodels • Webmasters • Webhosting
©2003-2023 by Zug™
©2003-2023 by Zug™
It looks rightZug wrote: ↑March 16th, 2023, 12:59 pm.htaccess file .. works on my server but may not on everyone else's.Code: Select all
# Redirect www urls to non-www RewriteEngine on RewriteCond %{HTTP_HOST} ^www\.YOURDOMAIN\.com [NC] RewriteRule (.*) https://YOURDOMAIN.com/$1 [R=301,L]