php - htaccess redirect to dynamic subpages -


i trying use redirect same page query string.

rewriterule ^fixtures(.*)$ views/fixtures.php  rewriterule ^fixtures/(.*).([a-za-z_-]*) views/fixtures.php?date=$1 

when click links page, nothing happens. in chrome debugger cancels request.

any idea doing wrong?

cheers

it great see working example looking @ rewrite rules seems there might small issue regex.

the issue can see first line expects like:

example.com/fixtures*absolutelyanythingeleseontheurl*

but think being overidden next line capturing 2 sections of url, after fixtures/ , after fullpoint a-za-z, _ or -. initial .* has taken care of that.

rewriterule ^fixtures/(.*).([a-za-z_-]*) views/fixtures.php?date=$1

have tried this:

rewriterule ^fixtures$ views/fixtures.php  rewriterule ^fixtures/(.*) views/fixtures.php?date=$1 

the above following: example.com/fixtures/ resolve views/fixtures.php , next line resolve following:

e.g. example.com/fixtures/22-06-2014 views/fixtures.php?date=22-06-2014


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -