.htaccess - Dobule Word with Hyphen(-) Htaccess Redirection Not works in PHP -


recently have created .htaccess redirection dynamic site. in redirection single-word url works perfectly. example: http://example.com/pincode/assam.php (no issue) @ same time link not works http://example.com/pincode/andhra-pradesh.php (issue)

i have stored state name andhra pradesh "andhra pradesh" in db , have used "strtolower" , "str_replace(' ', '-')" functions result "andhra-pradesh.php" in php file.

here htaccess code

rewriteengine on  rewritecond %{request_uri} /pincode/(.*).php$ rewriterule ^pincode/(.*).php$ pinstate.php?st=$1 [l] 

please me fix issue.


Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -