Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-27, 16:50:45

Author Topic: Redirect to www does not work  (Read 6922 times)

0 Members and 1 Guest are viewing this topic.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Redirect to www does not work
« Reply #15 on: 2013-05-13, 22:04:05 »
Mustafa can you update 6.5.0.f with this fix ?
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Redirect to www does not work
« Reply #16 on: 2013-05-14, 17:55:20 »
Still does not work:

Code: [Select]
RewriteEngine On
    RewriteCond %{HTTP_HOST} ^test2.domain.az.pl$ [NC]
    RewriteRule ^(.*)$ http://www.test2.domain.az.pl/$1 [R=301,L]
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Redirect to www does not work
« Reply #17 on: 2013-05-16, 02:19:55 »
Code: [Select]
RewriteEngine On
    RewriteCond %{HTTP_HOST} ^online.pl$ [NC]
    RewriteRule ^(.*)/$ http://www.online.pl/$1 [R=301,L]

This does not work too !
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Redirect to www does not work
« Reply #18 on: 2013-05-16, 02:26:40 »
Quote from: "Spacedust"
Code: [Select]
RewriteEngine On
    RewriteCond %{HTTP_HOST} ^online.pl$ [NC]
    RewriteRule ^(.*)/$ http://www.online.pl/$1 [R=301,L]

This does not work too !

This one works ok:

Code: [Select]
RewriteEngine On
RewriteCond %{HTTP_HOST} ^mydomain.com$
RewriteRule (.*) http://www.mydomain.com/$1 [R=301,L]
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Redirect to www does not work
« Reply #19 on: 2013-05-16, 02:42:09 »
There should be three entries if we want to use wildcards:

Code: [Select]
RewriteEngine on
RewriteBase /

#for all requests on mydomain.com
RewriteCond %{HTTP_HOST} mydomain.com$ [NC]
#if they are not for the www.mydomain.com
RewriteCond %{HTTP_HOST} !^www.mydomain.com$ [NC]
#301 redirect to www.mydomain.com
RewriteRule (.*) http://www.mydomain.com/$1 [R=301,L]
« Last Edit: 1970-01-01, 01:00:00 by Guest »

 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix

Page created in 0.04 seconds with 18 queries.

web stats analysis