How to Redirect domain.com to www.domain.com without htaccess file ?

Flinstone

Registered Member
Joined
May 4, 2012
Messages
51
Reaction score
9
Hi i have a site on namecheap with the easywp panel which doesnt give access to htaccess file by ftp.

When i type domain in browser www.site.com , the site appears but the www dissapear in the url bar which looks antiesthetic and unprofessional . And also i would need when typing in browser just site.com to be redirected to www.site.com . A long time ago i remember i used this on htaccess file
"
RewriteEngine On
RewriteCond %{HTTP_HOST} ^yourdomain.com [NC]
RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [L,R=301] "


But i dont have access to the file htaccess by ftp ... So any one could please give me a hand here ?

I also tried unsuccesfully a 301 URL redirect ...


Actually on the domain i Have :
************************************************************
ALIAS Record www ingress-alpha.easywp.com

ALIAS Record @ ingress-alpha.easywp.com

*************************************************************
 
Hi i have a site on namecheap with the easywp panel which doesnt give access to htaccess file by ftp.
Lol, really? Why would you use some shit like that?
When i type domain in browser http://www.site.com , the site appears but the www dissapear in the url bar which looks antiesthetic and unprofessional .
How does that make it unprofessional? Modern browsers will omit www from ANY website for that matter. Try checking BHW for example, unless you are using IE7 from your grandma's basement.

But i dont have access to the file htaccess by ftp ... So any one could please give me a hand here ?
I really miss the hand emoji here. Anyway, you could also redirect using your cms, e.g. wordpress. It doesn't have to be htaccess. Infact, wp does this by default. Just choose a site url without/with www if you are using wp.
 
Last edited:
Update, Solved i was going crazy trying 301 redirects on the domain... and it was just a matter of changing in wordpress==> Settings==> General => put the www in the two url fields... Oh ... im getting old for this haha..
 
On firefox v75 64 bit, on some known sites, i do see www. including bhw ..
 
Back
Top