Jump to content

Domain problem


stergos

Recommended Posts

Then you do want to use that code Wizard posted in the other thread you posted in. Use this to redirect all requests to your www:

 

RewriteEngine On 
RewriteCond %{HTTP_HOST} ^e-hacking.com
RewriteRule (.*) http://www.e-hacking.com/$1 [R=301,L]

Link to comment
Share on other sites

Then you do want to use that code Wizard posted in the other thread you posted in. Use this to redirect all requests to your www:

 

RewriteEngine On 
RewriteCond %{HTTP_HOST} ^e-hacking.com
RewriteRule (.*) http://www.e-hacking.com/$1 [R=301,L]

 

Thanks for reply! I have 21 pages I have to do this to all pages to the same .htacces?

 

RewriteEngine On

RewriteCond %{HTTP_HOST} ^e-hacking.com

RewriteRule (.*) http://www.e-hacking.com/$1 [R=301,L]

 

RewriteEngine On

RewriteCond %{HTTP_HOST} ^e-hacking.com/about.html

RewriteRule (.*) http://www.e-hacking.com/about.html$1 [R=301,L]

 

like this?

Link to comment
Share on other sites

You only need to add it ONCE to your root .htaccess file. If you don't already have an .htaccess file then you need to create one, but I'm pretty sure you should already have one.

 

 

Only this code:

 

RewriteEngine On 
RewriteCond %{HTTP_HOST} ^e-hacking.com
RewriteRule (.*) http://www.e-hacking.com/$1 [R=301,L]

 

Link to comment
Share on other sites

You only need to add it ONCE to your root .htaccess file. If you don't already have an .htaccess file then you need to create one, but I'm pretty sure you should already have one.

 

 

Only this code:

 

RewriteEngine On 
RewriteCond %{HTTP_HOST} ^e-hacking.com
RewriteRule (.*) http://www.e-hacking.com/$1 [R=301,L]

 

I have one with this details:

text/x-generic .htaccess

ASCII text

 

# -FrontPage-

 

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

 

<Limit GET POST>

order deny,allow

deny from all

allow from all

</Limit>

<Limit PUT DELETE>

order deny,allow

deny from all

</Limit>

AuthName e-hacking.com

AuthUserFile /home1/stergos/public_html/_vti_pvt/service.pwd

AuthGroupFile /home1/stergos/public_html/_vti_pvt/service.grp

 

So after this i fill:

 

RewriteEngine On

RewriteCond %{HTTP_HOST} ^e-hacking.com

RewriteRule (.*) http://www.e-hacking.com/$1 [R=301,L]

 

sorry im newbie.... :unsure:

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...