Imad Posted June 19, 2008 Share Posted June 19, 2008 Hi guys, I created this end inserted it into my htaccess file: <IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^signup$ /register.php?new_account=true/ [L] </IfModule> I then visited mysite.com/signup and I got a 404 error. Is their something wrong with the code above? Link to comment https://forums.phpfreaks.com/topic/110983-mod_rewrite-not-working/ Share on other sites More sharing options...
jsladek Posted June 19, 2008 Share Posted June 19, 2008 not sure if this will help but I had to add this line to mine. Options -MultiViews Link to comment https://forums.phpfreaks.com/topic/110983-mod_rewrite-not-working/#findComment-569433 Share on other sites More sharing options...
Imad Posted June 19, 2008 Author Share Posted June 19, 2008 Thanks for your help. I added it to my .htaccess but it still doesn't work. Best Regards. Link to comment https://forums.phpfreaks.com/topic/110983-mod_rewrite-not-working/#findComment-569435 Share on other sites More sharing options...
cooldude832 Posted June 20, 2008 Share Posted June 20, 2008 try <IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^.signup$ /register.php?new_account=true/ [L] </IfModule> Link to comment https://forums.phpfreaks.com/topic/110983-mod_rewrite-not-working/#findComment-569714 Share on other sites More sharing options...
Imad Posted June 20, 2008 Author Share Posted June 20, 2008 Thanks for your replies guys. I actually figured it out by removing the forward slash before the url to the actual file. Best Regards. Link to comment https://forums.phpfreaks.com/topic/110983-mod_rewrite-not-working/#findComment-569824 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.