mardi 28 avril 2015

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

Recently I have created a .htaccess redirection to my dynamic site. In the redirection single-word url works perfectly. example: (no issue) At the same time this link not works (issue)

I have stored state name andhra pradesh as "Andhra Pradesh" in my db and i have used "strtolower" and "str_replace(' ', '-')" functions to get the result as "andhra-pradesh.php" in my php file.

Here it is my htaccess code

RewriteEngine On

RewriteCond %{REQUEST_URI} /pincode/(.*).php$
RewriteRule ^pincode/(.*).php$ pinstate.php?st=$1 [L]

please help me to fix this issue.

Aucun commentaire:

Enregistrer un commentaire