Redirect to "WWW"
-
sedonagate
-
Topic Author
-
Offline
-
Junior Member
-
Less
More
-
Posts: 23
-
Thank you received: 0
-
-
11 years 11 months ago #446
by sedonagate
Is it possible to redirect all visitor from
whatever.com to
www.whatever.com ?
I see there is a Joomla plugin for SEO Canonicalization, but can we do this same thing with ReDJ?
Thank you.
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
11 years 11 months ago #447
by admin
Yes,
with last ReDJ version it's possible to create rules that works with the full URL and not only on the request part. So you can create a rule for this.
Kind regards,
Luigi
Please Log in or Create an account to join the conversation.
-
sedonagate
-
Topic Author
-
Offline
-
Junior Member
-
Less
More
-
Posts: 23
-
Thank you received: 0
-
-
11 years 11 months ago #456
by sedonagate
Hello, I would like to see an example of how this is done, please.
For example, in another one of my websites, I see this in the .htaccess file
RewriteCond %{HTTP_HOST} !^(www\.mysitename\.com)?$
RewriteRule ^(.*)$ www.mysitename.com/$1 [R=301,L]
So, what is the correct way to do the same thing using your component?
Also, suppose someone enters the IP address, but I always want them to be redirected to the domain. Can we do this also using your component? Please show me how/or the correct syntax to use and where to put it.
Thank you for your help.
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
-
sedonagate
-
Topic Author
-
Offline
-
Junior Member
-
Less
More
-
Posts: 23
-
Thank you received: 0
-
-
11 years 11 months ago #468
by sedonagate
Hi, sorry, but maybe you missed my question. I hope you can help me. Just want to be sure to do this right, as I don't want to make any big mistake with redirecting from www.
Thank you for any help.
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
11 years 11 months ago #469
by admin
Ok,
this should work for you:
From URL: ^https?://whatever.com
To URL: {scheme}://www.whatever.com{path}{queryfull}
Request only: FALSE
If you are not sure, just send me an email at info(at)selfget.com, and I will setup the rule for you.
Kind regards,
Luigi
Please Log in or Create an account to join the conversation.
Time to create page: 0.170 seconds