Page is a not externally linkable
chris_f - 10:20 am on Jun 23, 2006 (gmt 0)
I am trying to rebuild our companies CMS system. I currently have a number of RegEx rules in place (5 in total) to do what I want, however, they are causing problems elsewhere. Images, css and js docs aren't loading. If I disable the URL Rewritting they work but obviously everything else breaks. Here are the lines and what I am trying to achive with them. Any connections to www.domain.com should be redirected to www.domain.com/cms/cms.asp?page=default URL's like: Should be redirected to: URL's like: Should be redirected to: URL's like: Should be redirected to: URL's like: Should be redirected to: Ok. Now the whole idea. URL's to folders should be redirected to the default.html file within that forlder (this includes the root of the website, URLs ending in the slash, URLs not ending in the slash. HTML files should then be redirected to their relevant CMS page. So: HTM files should be translated to their relevant ASP application. So: All other files (e.g. images, css, js, docs, xls etc....) should not be rewritten. PLEASE HELP!
Hi All, RewriteRule ^/$ /cms/cms.asp?page=default RewriteRule ^/(.*)/$ /cms/cms.asp?page=$1-default
www.domain.com/ordering/
www.domain.com/internet/
www.domain.com/cms/cms.asp?page=ordering-default
www.domain.com/cms/cms.asp?page=internet-default RewriteRule (.*)\.html$ /cms/cms.asp?page=$1
www.domain.com/contact.html
www.domain.com/ordering/hardware.html
www.domain.com/cms/cms.asp?page=contact
www.domain.com/cms/cms.asp?page=ordering-hardware RewriteRule .*/(.*)-(.*)\.htm[^lL](.*) /asp/$1/$2.asp?$3
www.domain.com/curriculum/sow-unit.htm?abc=123&def=456
www.domain.com/asp/sow/unit.asp?abc=123&def=456 RewriteRule ([^.]+[^/])$ /cms/cms.asp?page=$1-default
www.domain.com/curriculum
www.domain.com/cms/cms.asp?page=curriculum-default
www.domain.com/folder/folder2/file.html = www.domain.com/cms/cms.asp?page=folder-folder2-file
www.domain.com/folder/app-file.htm?query=strings&remain=intact = www.domain.com/asp/app/file.asp?query=strings&remain=intact
Chris