Hi there,
Hope to be concise here. First real intensive use of RewriteRule's in the .htaccess file. Here is my attempted coding:
# ----------- real pages we wish to preserve --------------
RewriteRule ^cms3.01.php$ cms3.01.php #a specific page I want to keep from rewrites
RewriteRule (.*).js$$1.js #should be common sense..
RewriteRule (.*).css$$1.css #should be common sense..
#------------ pages with folders=components ---------------
RewriteRule ([^/]+)/(.+)(.php)$ index.php?component=$1&node=$2"
RewriteRule ([^/]+)/(.+)$ index.php?component=$1&node=$2
#------------ all other strings - this is restrictive -------------
RewriteRule (.+)(.php)$ index.php?node=$1
RewriteRule (.+)$ index.php?node=$1
The logic above is:
1. preserve .js and .css pages
2. .php extension is discarded - /page is the same as /page.php
3. URL's with format of folder/file.php - folder is treated as the component or module for the site application
4. URL's without a folder like /file.php - same page but component variable not passed.
However it is not working. Can anyone assist me with this?
I am active in the community over at php builder, sorry I can't be of more help here but really appreciate the review and solution to this