Page 1 of 1

.htaccess is not working in my domain

Posted: Tue Mar 22, 2011 6:16 am
by bhanu
hi

i want to redirect url like http://domain.com/username.php?username=bhanu to http://domain.com/bhanu

for this i was cocde in .htaccess file
RewriteEngine On
RewriteRule ^([a-zA-Z0-9_-]+)$ user.php?username=$1
RewriteRule ^([a-zA-Z0-9_-]+)/$ user.php?username=$1
this is working in my localhost. but i didn't get in my domain. i have uploaded all the files.

i got in server like this

Oops! This link appears to be broken.

please help me out...

hope i got result.

thank you in advance.


regards
bhanu

Re: .htaccess is not working in my domain

Posted: Tue Mar 22, 2011 7:02 am
by Weiry
If your hosting the files externally, check if you have the: "AllowOverride all" virtualhost directory setting enabled for that domain.

Re: .htaccess is not working in my domain

Posted: Sat Mar 26, 2011 5:48 am
by bhanu
my server is linux / shared hosting. please help me how to " AllowOverride all" virtualhost directly setting enable for domain...

goddady .htaccess

Posted: Sat Mar 26, 2011 6:13 am
by bhanu
I'm looking for the AllowOverride setting for GoDaddy hosting, does anybody know where I can find that?