admin管理员组

文章数量:1289346

i have website on php and this website have only on page like index.php and all the product make in my mysql database.. when i calling the producat with city its a working but now i want to redirect the this product listing to anoter website same path product listing... then i see some issue like the slug value are showing ... i am metion the issue and also attached the my httacess code which i use... please resolve it..

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.\*\[^/\])$ /$1/ \[L,R\]
RewriteRule ^proucts/(\[a-zA-Z0-9-/\]+)$  proucts.php?slug=$1
RewriteRule ^proucts/(\[a-zA-Z0-9-/\]+)/  proucts.php?slug=$1
RewriteRule ^proucts/  proucts.php?slug=$1
RewriteRule ^prouct/(\[a-zA-Z0-9-/\]+)$  prouct.php?slug=$1
RewriteRule ^prouct/(\[a-zA-Z0-9-/\]+)/  prouct.php?slug=$1

RedirectMatch 301 ^/pune/product/ro-pant/ /
`Output-- path coming-`
/?slug=maharashtra/pune/product/ro-pant/

but i want path getting
/

For ex.
/ Redirect to /

OR
`/ >> /`

in PHP i am only this product redirect not all the product which in listing on database...

本文标签: htaccessPhP Redirect issue by Httacess When my Slug path in Mysql databaseStack Overflow