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
版权声明:本文标题:.htaccess - PhP Redirect issue by Httacess When my Slug path in Mysql database - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741439504a2378830.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论