php - .htaccess rewrite conflict issue -
please have problem .htaccess file
rewriteengine on rewritebase /subdomain #make sure it's actual file rewritecond %{request_filename} -f [or] #make sure directory rewritecond %{request_filename} -d rewriterule ^ - [l] #rewrite request index.php rewriterule ^([^/]+)/([^/]+)/?$ index.php?mode=$1&s=$2 [l,qsa] #rewrite request index.php rewriterule ^([^/]+)/?$ index.php?mode=$1 [l,qsa]
this .htaccess me access url http://domain.com/subdomain/index.php?mode=page http://domain.com/subdomain/page/
now want access url http://domain.com/subdomain/checkout.php http://domain.com/subdomain/checkout/ not working online, when test on localhost work fine.
can changes on .htaccess resolve ? appreciated. thank in advance.
in moment of luck, solved :)
before trying specify special checkout.php in .htaccess that
rewriterule checkout/ checkout.php
in fact, solution, instead of putting after previous code "in question", put directly after line
rewritebase /subdomain
Comments
Post a Comment