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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -