chantown Posted October 29, 2008 Share Posted October 29, 2008 Hello there, I have a mod rewrite that doesn't seem to work Options +FollowSymLinks (optional) Options +Indexes (optional) RewriteEngine On RewriteRule ^/([0-9a-z])$ /?code=$1 [L] Basically, I would like www.domain.com/stuff123 ------> www.domain.com/?code=stuff123 Can someone find anything wrong with my code? Thanks! Link to comment https://forums.phpfreaks.com/topic/130530-very-simple-mod-rewrite-not-working-please-help/ Share on other sites More sharing options...
rocoso Posted October 29, 2008 Share Posted October 29, 2008 I think you have to have the file name in there Link to comment https://forums.phpfreaks.com/topic/130530-very-simple-mod-rewrite-not-working-please-help/#findComment-677200 Share on other sites More sharing options...
chantown Posted October 29, 2008 Author Share Posted October 29, 2008 Well, even with this it doesn't really work: RewriteRule ^/([0-9a-z])$ /index.php?code=$1 [L] Link to comment https://forums.phpfreaks.com/topic/130530-very-simple-mod-rewrite-not-working-please-help/#findComment-677203 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.