Reputation: 11673
How do I make it so when a user clicks on, http://localhost/jobwehave.co.za/job/1
They are shown the page for http://localhost/jobwehave.co.za/job?=1
But the url still says http://localhost/jobwehave.co.za/job/1
I am using mod_rewrite in an .htaccess file at the root of the site.
Upvotes: 0
Views: 380
Reputation: 270617
RewriteEngine On
RewriteRule /jobwehave.co.za/job/([0-9]+)$ /jobwehave.co.za/job?job=$1 [L,QSA]
Upvotes: 2
Reputation: 3128
Try this,
RewriteRule ^jobwehave.co.za/job/(\d+)$ jobwehave.co.za/job?id=$1
Rick.
Upvotes: 2