zenag Posted May 8, 2009 Share Posted May 8, 2009 i need help in creating dynamic url using .htacces i need http://demo.hypercube.com/zenag to be redirected to page... http://demo.hypercube.com/manage/user.php?username=zenag i ve used RewriteEngine On RewriteRule ^([a-zA-Z0-9_-]+)$ /user.php?username=$1 RewriteRule ^([a-zA-Z0-9_-]+)/$ /user.php?usernname=$1 it shows 404 error ,but works pretty well in my localhost..any help pls... Quote Link to comment Share on other sites More sharing options...
gffg4574fghsDSGDGKJYM Posted May 8, 2009 Share Posted May 8, 2009 Where did you put your .htaccess ? You may need to change your rules to that : RewriteRule ^([a-zA-Z0-9_-]+)$ /manage/user.php?username=$1 And put your .htaccess in / instead or /manage Or move the user.php to / instead or /manage Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.