Jump to content

shop dns setup


saviorho

Recommended Posts

Hi saviorho,

 

You can also write the following code in your htaccess file (you need to replace domain.com with your domain name) :

 

 

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www.domain.com$ [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301]

 

thanks

 

i try

 

now goto the page like this: 310 (net::ERR_TOO_MANY_REDIRECTS

 

i sent my .htaccess form for you

 

please help me check

Link to comment
Share on other sites

Ok... now is a long story...

 

my sever: ubuntu11.x Apache2.x

server adress: 222.111.333.444 (ex)

 

prestashop install in : /etc/www/myshop (ex)

 

so now my domain: 222.111.333.444/myshop (ex)

 

 

than i buy a new domain: www.myshop.cc (ex)

 

now i want change the domain name 222.111.333.444/myshop to www.myshop.cc

 

hope anytime anypage look like www.myshop.cc/omgsell-1 or www.myshop.cc/reg anyway

 

my vituralhost setup

 

<VirtualHost *:80>
ServerName www.myshop.cc
DocumentRoot "/etc/www/myshop"
</VirtualHost>

 

and i write .htaccess like:

 

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^222.111.333.444/myshop$ [NC]
RewriteRule ^(.*)$ http://www.myshop.cc/$1 [L,R=301]

 

and i also try this:

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www.myshop.cc$ [NC]
RewriteRule ^(.*)$ http://www.myshop.cc/$1 [L,R=301]

alway show me 404 or 310 :(

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...