Hi! i finally got this to work. The main problem i had was the fact that i was using the ispconfig server as a name server for my clients. so outside my LAN it works but only inside if i remove the server from the dns-settings.
There is 3.0.2 around now.
Is there any simple way to make website auto redirecting from example.com to www.example.com ? Without editing any files?
I try to use web alias, or selecting (in website domain) "*" as automatic subdomain or "www" but it did not transfer from example.com to www.example.com. How to do that?
Posts: 32,055
Thanks: 697
Thanked 4,245 Times in 3,258 Posts
There is no need to edit any files, neither in 3.0.2 nor any version before that. Just add the following lines in the apache directives field of the website were you want to get this automatic rewrite:
Code:
RewriteEngine On
RewriteCond %{HTTP_HOST}//s%{HTTPS} ^[^w][^w][^w][^.].*//((s)on¦s.*) [NC]
RewriteRule ^ http%2://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Thanks Too bad no such option in ispconfig
Uh i was happy too fast. While it is loading website from www.example.com the address do not change in browser address bar.
But well i figured it out that wordpress do it automatically if i use www.example.com as domain in it's configuration, so will try to check how it is doing that, and maybe i will be able to do same with my sites
Recent comments
11 hours 28 min ago
13 hours 55 min ago
1 day 1 hour ago
1 day 4 hours ago
1 day 8 hours ago
1 day 14 hours ago
2 days 23 min ago
2 days 2 hours ago
2 days 10 hours ago
2 days 11 hours ago