I currently have the following in my .htaccess to make a dynamic site look static:
RewriteRule New/(.*)$ /cgi-bin/links/page.cgi?g=New/$1 [L]
RewriteRule Ratings/(.*)$ /cgi-bin/links/page.cgi?g=Ratings/$1 [L]
RewriteRule Pop/(.*)$ /cgi-bin/links/page.cgi?g=Pop/$1 [L]
The problem is, anything else that I upload is regarded as a category and won't display.
Example 1: phpinfo.php in to root directory returns Category 'phpinfo.php' does not exist.
Example 2: /comments/admin/ directories in the root folder returns Category 'comments/admin' does not exist.
How can I get round this?
Code:
RewriteRule ^(.*).php /cgi-bin/links/page.cgi?g=$1.php [L] RewriteRule New/(.*)$ /cgi-bin/links/page.cgi?g=New/$1 [L]
RewriteRule Ratings/(.*)$ /cgi-bin/links/page.cgi?g=Ratings/$1 [L]
RewriteRule Pop/(.*)$ /cgi-bin/links/page.cgi?g=Pop/$1 [L]
The problem is, anything else that I upload is regarded as a category and won't display.
Example 1: phpinfo.php in to root directory returns Category 'phpinfo.php' does not exist.
Example 2: /comments/admin/ directories in the root folder returns Category 'comments/admin' does not exist.
How can I get round this?