DeanWhitehouse Posted December 12, 2008 Share Posted December 12, 2008 How can i rewrite urls like this http://mysite.com/update.php?type=recent&id=1 to http://mysite.com/Updates/Recent/Update Name/ Also how can i use a URL like http://mysite.com/Login/ or http://mysite.com/Login Is this correct: RewriteEngine On RewriteBase / RewriteRule ^Login login.php[NC,L] Quote Link to comment Share on other sites More sharing options...
DeanWhitehouse Posted December 12, 2008 Author Share Posted December 12, 2008 i have this so far RewriteEngine On RewriteBase / RewriteRule ^Login login.php [NC,L] RewriteRule ^Login/ login.php [NC,L] RewriteRule ^About about.php [NC,L] RewriteRule ^About/ about.php [NC,L] RewriteRule ^Products products.php [NC,L] RewriteRule ^Products/ products.php [NC,L] RewriteRule ^Services services.php [NC,L] RewriteRule ^Services/ services.php [NC,L] RewriteRule ^Portfolio portfolio.php [NC,L] RewriteRule ^Portfolio/ portfolio.php [NC,L] RewriteRule ^Contact contact.php [NC,L] RewriteRule ^Contact/ contact.php [NC,L] RewriteRule ^Reminder reminder.php [NC,L] RewriteRule ^Reminder/ reminder.php [NC,L] RewriteRule ^Privacy privacy.php [NC,L] RewriteRule ^Privacy/ privacy.php [NC,L] RewriteRule ^Terms terms.php [NC,L] RewriteRule ^Terms/ terms.php [NC,L] RewriteRule ^Terms terms.php [NC,L] RewriteRule ^Terms/ terms.php [NC,L] Just need the dynamic one now Quote Link to comment Share on other sites More sharing options...
DeanWhitehouse Posted December 12, 2008 Author Share Posted December 12, 2008 Tried RewriteRule ^Updates/([^-]+)-([^&]+)\.html$ /update.php?update_id=$1&update_name=$2 [L] But not working when i enter mysite.com/Updates/1/the new thing/ 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.