ironhamster88 Posted September 21, 2009 Share Posted September 21, 2009 Hi guys / girls, Ok, I have a slight problem with mod rewrite. My current URLs are as follows: http://whatever.com/profile/?username=someuser I need it to be: http://whatever.com/profile/someuser I've not spent much time at all working with mod-rewrite, can anybody help? I've got this so far but all I get is a 404. RewriteEngine on RewriteCond %{REQUEST_URI} !^/profile/ [NC] RewriteRule ^([^/\.]+)/?$ /profile/index.php?id=$1 [L] Cheers Pete Link to comment https://forums.phpfreaks.com/topic/175019-mod-rewrite-woes/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.