View Single Post
  #11   Spotlight this post!  
Unread 03-25-2004, 10:03 PM
HFWang's Avatar
HFWang HFWang is offline
Registered User
AKA: DarkWulf
#0115
Team Role: Webmaster
 
Join Date: Jan 2003
Location: Cupertino
Posts: 177
HFWang will become famous soon enough
Send a message via ICQ to HFWang Send a message via AIM to HFWang
Re: CSS Based Design

My rewrite file looks like the following...
Code:
RewriteEngine On
RewriteRule ^images(.*)$ images$1 [S=1]
RewriteRule ^(.*)/$      ?path=$1 [L,NS,QSA]
Just so you know, this rewrites EVERYTHING. The rewrite rule for images marks the image folder as being directed to that folder (and then skipping the following rule, so it doesn't run into the other rewrite). This way everything is passed into your CMS and it can handle everything for you.

I then wrote a custom CMS solution for the site that could then parse $_GET['path'] and return the appropriate page...
__________________
rawr