In a nutshell I have a dynamic site, it's a single file page that loads up a table of contents, data, images, etc etc. and each link on the toc points to
index01.html
index02.html
etc etc
I would like the url to be rewritten so it is processed like
index.html?id=01
index.html?id=02
but showing up in the url as the original link.
Normally I would just keep is in php and pass the variables normally but when the page is finished i plan to crawl the site and save a static copy for offline (with no pre processor) browsing.
I hope I gave enough information to give an idea of what I am trying to do and here is a copy of the last rewrite I tried but remember this is my first time trying rewrites so dont laugh too hard
- Code: Select all
rewriteRule ^index([0-9]+)\.html$ /index\.html\?id\=$1 / [QSA]