How htaccess syntax?
I have 3 files (php) a. premium.php
b. direktori2.php
c. direktori_det2.php
this Flow:
example.com/AbelPutra-com (inside premium.php) and i direct to direktori2.php file
---> RewriteRule ^([A-Za-z0-9-()/&]+)/?$ direktori2.php?NamaToko=$1 [NC,L]
this is OK
example.com/AbelPutra-com/Modern-Karaoke (inside direktori2.php) and I direct to direktori_det2.php file
---> RewriteRule ^([A-Za-z0-9-()/&]+)/([A-Za-z0-9-()/&]+)/?$ direktori_det2.php?NamaToko=$1&NamaProduk=$1 [NC,L]
*this is Problem *
开发者_运维知识库or this error Syntax?
When I running in number 2, server read with rewrite in number 1 (always read number 1)
How to fix?
Without detailed looking into this rule I found this mistake:
RewriteRule ^([A-Za-z0-9-()/&]+)/([A-Za-z0-9-()/&]+)/?$ direktori_det2.php?NamaToko=$1&NamaProduk=$2
You use NamaProduk=$1
instead of NamaProduk=$2
.
精彩评论