Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [MJB] Stop RewriteRule blocking other content

Quote Reply
Re: [MJB] Stop RewriteRule blocking other content In reply to
You would need to do something like:

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!
Subject Author Views Date
Thread Stop RewriteRule blocking other content MJB 6126 May 6, 2011, 5:20 AM
Post Re: [MJB] Stop RewriteRule blocking other content
MJB 5993 May 6, 2011, 5:52 AM
Thread Re: [MJB] Stop RewriteRule blocking other content
Andy 5988 May 6, 2011, 5:58 AM
Thread Re: [Andy] Stop RewriteRule blocking other content
MJB 5986 May 6, 2011, 6:28 AM
Thread Re: [MJB] Stop RewriteRule blocking other content
Andy 5978 May 6, 2011, 6:40 AM
Thread Re: [Andy] Stop RewriteRule blocking other content
MJB 5815 May 19, 2011, 9:48 AM
Thread Re: [MJB] Stop RewriteRule blocking other content
Andy 5821 May 19, 2011, 10:11 AM
Post Re: [Andy] Stop RewriteRule blocking other content
MJB 5804 May 19, 2011, 12:06 PM