-1

I have the following link which is working:

jobdetails.php?url=Human-Resoure-Manager-3-5

I want to convert it to a friend link below but i don't know what wrong with my htaccess:

/jobdetails/Human-Resoure-Manager-3-5

 Options +FollowSymLinks

RewriteEngine On
RewriteRule ^jobdetails/([a-zA-Z0-9]+)/$ jobdetails.php?url=$1
hjpotter92
  • 71,576
  • 32
  • 131
  • 164
Elias
  • 47
  • 6
  • Possible duplicate of [Reference: mod\_rewrite, URL rewriting and "pretty links" explained](https://stackoverflow.com/questions/20563772/reference-mod-rewrite-url-rewriting-and-pretty-links-explained) – hjpotter92 Jul 21 '17 at 14:01

2 Answers2

1

You're not matching the dashes "-", try this:

Options +FollowSymLinks

RewriteEngine On
RewriteRule ^jobdetails\/([a-zA-Z0-9-]+)\/$ jobdetails.php?url=$1
nickstaroba
  • 155
  • 11
0

After extensive searching in discovered that i was leaving out ? before $ jobdetails/([a-zA-Z0-9]+)/ was forgeting to put ? here $

Elias
  • 47
  • 6