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
bhanu
Forum Commoner
Posts: 46 Joined: Thu Nov 05, 2009 4:25 am
Post
by bhanu » Tue Mar 22, 2011 6:16 am
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
Weiry
Forum Contributor
Posts: 323 Joined: Wed Sep 09, 2009 5:55 am
Location: Australia
Post
by Weiry » Tue Mar 22, 2011 7:02 am
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
Post
by bhanu » Sat Mar 26, 2011 5:48 am
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
Post
by bhanu » Sat Mar 26, 2011 6:13 am
I'm looking for the AllowOverride setting for GoDaddy hosting, does anybody know where I can find that?