.htaccess is not working in my domain

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
bhanu
Forum Commoner
Posts: 46
Joined: Thu Nov 05, 2009 4:25 am

.htaccess is not working in my domain

Post 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
User avatar
Weiry
Forum Contributor
Posts: 323
Joined: Wed Sep 09, 2009 5:55 am
Location: Australia

Re: .htaccess is not working in my domain

Post by Weiry »

If your hosting the files externally, check if you have the: "AllowOverride all" virtualhost directory setting enabled for that domain.
bhanu
Forum Commoner
Posts: 46
Joined: Thu Nov 05, 2009 4:25 am

Re: .htaccess is not working in my domain

Post by bhanu »

my server is linux / shared hosting. please help me how to " AllowOverride all" virtualhost directly setting enable for domain...
bhanu
Forum Commoner
Posts: 46
Joined: Thu Nov 05, 2009 4:25 am

goddady .htaccess

Post by bhanu »

I'm looking for the AllowOverride setting for GoDaddy hosting, does anybody know where I can find that?
Post Reply