× Here you can get community support related to ReDJ.

Want to change everything without the www to www

  • Chacapamac
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 11 months ago #2464 by Chacapamac
I just want to change any url that will be asked without the www version to be redirect to the corresponding www.mysite.com/whateveverwasaskedoriginally

mysite.com/whateveverwasaskedoriginally or mysite.com/whateveverwasaskedoriginally will be redirect to
—> mysite.com/whateveverwasaskedoriginally

I already have a 301 redirect in the htaccess that redirect the main domain

processco.net to www.processco.net but if you put anything after the main domain name (Like) processco.net/anyworkingurl it will not redirect to www.processco.net/anyworkingurl

It’s a long time I’m trying to make any working redirection in RedDj without any success...

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

More
9 years 11 months ago #2465 by admin
Hi,
you can do it with ReDJ but the best solution is to add a directive into the .htaccess file:
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

Kind regards,
Luigi
The following user(s) said Thank You: Chacapamac

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

  • Chacapamac
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 11 months ago #2466 by Chacapamac
Replied by Chacapamac on topic Want to change everything without the www to www
How it will look in Red DJ

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

More
9 years 11 months ago #2467 by admin
If you use the apache mod_rewrite rule you do not need to create any rule using ReDJ. Let me know if this is still not clear.

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

  • Chacapamac
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 11 months ago #2468 by Chacapamac
Replied by Chacapamac on topic Want to change everything without the www to www
Yes, understood, I just want to know how it will look when made wit Red DJ...

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

More
9 years 11 months ago #2469 by admin
Sorry... I did not understand... :)

Something like this should work:
From URL: https?://processco.net
To URL: {scheme}://www.processco.net{path}{queryfull}
Request only: false (not checked)

Kind regards,
Luigi
The following user(s) said Thank You: Chacapamac

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

Time to create page: 0.134 seconds