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... Link to comment https://forums.phpfreaks.com/topic/157331-dynamic-url-using-rewrit-rule/ Share on other sites More sharing options...
GingerRobot Posted May 8, 2009 Share Posted May 8, 2009 Don't double post. I'm pretty sure that after 434 posts you're capable of finding the correct place for your thread. I've already had to move the other one. Link to comment https://forums.phpfreaks.com/topic/157331-dynamic-url-using-rewrit-rule/#findComment-829286 Share on other sites More sharing options...
Ken2k7 Posted May 8, 2009 Share Posted May 8, 2009 RewriteEngine On RewriteRule ^zenag$ /manage/user.php?username=zenag [R=301,L] ? Link to comment https://forums.phpfreaks.com/topic/157331-dynamic-url-using-rewrit-rule/#findComment-829414 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.