× Here you can get community support related to ReDJ.

Redirect to "WWW"

  • sedonagate
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 5 months ago #446 by sedonagate
Redirect to "WWW" was created 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.

More
11 years 5 months ago #447 by admin
Replied by admin on topic Redirect to "WWW"
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
  • Junior Member
More
11 years 5 months ago #456 by sedonagate
Replied by sedonagate on topic Redirect to "WWW"
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.

More
11 years 4 months ago #457 by admin
Replied by admin on topic Redirect to "WWW"
Of course,
here is an example:

selfget.com/forum/redj/321-redirect-for-home-page.html

Kind regards,
Luigi

Please Log in or Create an account to join the conversation.

  • sedonagate
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 4 months ago #468 by sedonagate
Replied by sedonagate on topic Redirect to "WWW"
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.

More
11 years 4 months ago #469 by admin
Replied by admin on topic Redirect to "WWW"
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.092 seconds