Jump to content

Recommended Posts

Posted

Hello,

 

I'm moved to this host, cuz prev. host stopped.

 

But when I moved, the htaccess wont work

 

What's wrong?

I already added the *.wwwz.tk subdomain to public_html

 

I think everyting is set the same as prev. server, but still not

 

thanks.

 

# -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 wwwz.tk

AuthUserFile /home/rms95/public_html/_vti_pvt/service.pwd

AuthGroupFile /home/rms95/public_html/_vti_pvt/service.grp

 

 

RewriteEngine on

 

RewriteBase /

 

RewriteRule accounts/ /?p=accounts [QSA,L]

RewriteRule createacc/ /?do=createaccount [QSA,L]

 

RewriteCond %{HTTP_HOST} !^www\.wwwz.tk

RewriteCond %{HTTP_HOST} ^(.+).wwwz.tk

RewriteRule ^([^/]*)(.*)/(.*)$ http://wwwz.tk/?subdomain=%1&t=$1&c=$2 [P,QSA,L]

 

#This are all comments, old stuff which didnt work

#RewriteCond %{HTTP_HOST} !^www\.wwwz.tk

#RewriteCond %{HTTP_HOST} ^(.+).wwwz.tk

#RewriteRule ^(.*)% http://wwwz.tk/?subdomain=%1&t=$1 [P,QSA,L]

#RewriteRule http://(.*).wwwz.tk/(.*)/ /?p=$2 [QSA,L]

Posted

The best way to see what is causing the error is just comment out each line one at a time until it works.

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...