|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: CSS Based Design
This guide assumes knowledge of regular expressions.
IThe mod_rewrites on my local copy of the site (out of date by two months, and I stripped out redundant statements that weren't needed because of the usage of the <base> element) and commented are: Code:
#Syntax is "RewriteRule [URL RegExp] [Replacement with optional back references [[Flags]]" RewriteRule ^/$ /robotics/ [R,L] #Redirects http://localhost/ to http://localhost/robotics #R flag redirects, L prevents fall through to statements below RewriteRule ^/robotics/pages/(.+)$ /robotics/index.php?file=pages/$1.inc [L] #Using W3 recommended URIs, which makes it more difficult to rewrite URIs, since there is the problem of what to rewrite to. This has been solved by dumping all pages under the /robotics/pages directory, and use the <base> element to shift the initial path for relative URIs to just /robotics/ . All the "pages" are files with the .inc extension which are included into PHP. The scripts filter for the .inc extension for security purposes. |
|
#2
|
||||
|
||||
|
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] I then wrote a custom CMS solution for the site that could then parse $_GET['path'] and return the appropriate page... |
|
#3
|
|||
|
|||
|
Re: CSS Based Design
Just added a style switcher at the bottom of our page. 188 has a nice website. In retrospect our website's navigation is rather bad.
Last edited by jhnphm : 29-03-2004 at 01:27. |
|
#4
|
|||
|
|||
|
Re: CSS Based Design
|
|
#5
|
|||
|
|||
|
Re: CSS Based Design
Brandon,
That's a great list. Lots of good info there. If I may, I have two to add... #1 The Zen Garden . This really awakened me to to POWER of CSS. Click on the designs on the right side of the page, They will load up different CSS files using the same html file. Really cool. #2 Webmaster World . This is a News and Discussion for the Independent Web Professional site. It is a great community forum like Chiefdelphi dedicated to web issues. It's free to register for the public side. There are forums dedicated to all web subjects including a terrific CSS forum. Post a question and someone will toss out an answer. There is a non-public side, that deals with the business side of the web that makes really interesting reading. It's good community, very much like we have here. jb |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Design Sharing | Rod | General Forum | 32 | 14-01-2004 22:00 |
| Roller Chain Based Three Speed Transmission | Madison | Technical Discussion | 11 | 09-01-2004 16:40 |
| How do you design your robot? | Gui Cavalcanti | General Forum | 23 | 16-11-2003 18:33 |
| gearing design calculation question | caffel | Motors | 4 | 24-03-2003 17:34 |
| Ok, so YOU design the 2003 game... | dlavery | General Forum | 157 | 07-01-2003 23:55 |