How can I achieve the URL pattern when the form is submitted
index.php
<form name="search_form" method="get" action="search-jobs/">
Skills : <input type="text" name="skills" />
Location : <input type="text" name="loc" />
<input type="submit" name="search" value="Search" />
<br />
.htacess
RewriteRule ^search-jobs/(.*)/(.*)?.php$ findjob4.php?skills=$1&loc=$2
how can I achieve this url / .htacess aliases when form is submited
Pattern url
www.example.com/search-jobs/{skills value}/{loc value}.php
sample
www.example.com/search-jobs/php/london.php
When i did this, its giving an error as Object not found and Error 404.
basically : how i get the url pattern in above Pattern url in that format and in end of url
.php should added
Set its action to index.php (the same page), and add this to the top of index.php:
You’ll also have to remove .php from the rewrite url according to Rafee.