Access by folder instead of extension, preserve css/images
Hi all I'm new to the forums. I've been looking into rewriting and have been having problems getting my CSS and images to load correctly. What I want to happen is...
Client sees: http://www.domain.com/about/
Actual file viewing: http://www.domain.com/about.php
My media paths are as follows...
CSS: http://www.domain.com/_includes/css/
Img: http://www.domain.com/_images/
Here's my code...
Obviously it could be a little more dynamic, but I'm learning! Any help would be appriciated.
Client sees: http://www.domain.com/about/
Actual file viewing: http://www.domain.com/about.php
My media paths are as follows...
CSS: http://www.domain.com/_includes/css/
Img: http://www.domain.com/_images/
Here's my code...
- Code: Select all
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteRule \.(gif¦jpg¦css)$ - [S=1] #does not work!
RewriteRule ^about[/]?$ /about.php [L]
Obviously it could be a little more dynamic, but I'm learning! Any help would be appriciated.