You would need to do something like:
RewriteCond %{REQUEST_URI} !directory_name
RewriteRule ^(.*).php /cgi-bin/links/page.cgi?g=$1.php [L]
RewriteCond %{REQUEST_FILENAME} !phpinfo\.php$
RewriteCond %{REQUEST_URI} !directory_name
RewriteRule New/(.*)$ /cgi-bin/links/page.cgi?g=New/$1 [L]
RewriteCond %{REQUEST_FILENAME} !phpinfo\.php$
RewriteCond %{REQUEST_URI} !directory_name
RewriteRule Ratings/(.*)$ /cgi-bin/links/page.cgi?g=Ratings/$1 [L]
RewriteCond %{REQUEST_FILENAME} !phpinfo\.php$
RewriteCond %{REQUEST_URI} !directory_name
RewriteRule Pop/(.*)$ /cgi-bin/links/page.cgi?g=Pop/$1 [L]
Basically, setting "conditions" just before each rule, which tell it to check if its true before the rule gets run.
Hope that helps.
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Code:
RewriteCond %{REQUEST_FILENAME} !phpinfo\.php$ RewriteCond %{REQUEST_URI} !directory_name
RewriteRule ^(.*).php /cgi-bin/links/page.cgi?g=$1.php [L]
RewriteCond %{REQUEST_FILENAME} !phpinfo\.php$
RewriteCond %{REQUEST_URI} !directory_name
RewriteRule New/(.*)$ /cgi-bin/links/page.cgi?g=New/$1 [L]
RewriteCond %{REQUEST_FILENAME} !phpinfo\.php$
RewriteCond %{REQUEST_URI} !directory_name
RewriteRule Ratings/(.*)$ /cgi-bin/links/page.cgi?g=Ratings/$1 [L]
RewriteCond %{REQUEST_FILENAME} !phpinfo\.php$
RewriteCond %{REQUEST_URI} !directory_name
RewriteRule Pop/(.*)$ /cgi-bin/links/page.cgi?g=Pop/$1 [L]
Basically, setting "conditions" just before each rule, which tell it to check if its true before the rule gets run.
Hope that helps.
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!