Requests to the page take two forms. either:
institution.html
which gets mapped to:
displaylist.php?InstitutionID=institution
and...
institution/section.html
which gets mapped to:
displaylist.php?InstitutionID=institution&SectionID=section
This is working so far:
- Code: Select all
RewriteEngine on
rewritebase /nmdc/newspol/lists_non/
rewriterule ^(.*)/(.*)\.html$ /nmdc/newspol/lists_non/displaylist.php?InstitutionID=$1&SectionID=$2 [l]
rewriterule ^(.*)\.html$ /nmdc/newspol/lists_non/displaylist.php?InstitutionID=$1 [l]
Except that when the first rule is matched any internal inliks in the page are broken (images/css etc.)
Can anyone help me here?