Danny620 Posted May 14, 2012 Share Posted May 14, 2012 I want a url like http://www.mywebsite.co.uk/jobfinder I've got this to work http://www.mywebsite.co.uk/jobfinder/ using <IfModule mod_rewrite.c> Options +FollowSymLinks Options +Indexes RewriteEngine On RewriteCond %{SCRIPT_FILENAME} !-d RewriteRule ^([^\.]+)/$ $1.php [NC,L] </IfModule> Quote Link to comment Share on other sites More sharing options...
requinix Posted May 14, 2012 Share Posted May 14, 2012 Hint: a ? means the thing before it is optional. Quote Link to comment Share on other sites More sharing options...
Danny620 Posted May 14, 2012 Author Share Posted May 14, 2012 please code you show me an example Quote Link to comment Share on other sites More sharing options...
requinix Posted May 14, 2012 Share Posted May 14, 2012 Of how a question mark works? Sure. abc -- matches only "abc" abc? -- matches "ab" optionally followed by a "c" 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.