fun4uoc wrote:
..in my .htaccess file.
Code:
RewriteEngine on
Options +FollowSymlinks
RewriteBase /
RewriteRule ^$ /cgi-bin/X.cgi?%{REQUEST_URI} [L]
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_URI} !/.*/
RewriteRule ^.*\.html$ /cgi-bin/X.cgi?%{REQUEST_URI} [L]
Everything works fine when I go to
http://mydomain.com/index.php but if I just go to
http://mydomain.com it only shows a blank page. If I delete the contents of .htaccess then everything goes back to normal.
try this:
Code:
Options +FollowSymlinks
DirectoryIndex index.php
RewriteEngine On
RewriteBase /
RewriteRule ^$ /cgi-bin/X.cgi?%{REQUEST_URI} [L]
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_URI} !^/.*/$
RewriteRule ^.*\.html$ /cgi-bin/X.cgi?%{REQUEST_URI} [L]
Explain what the X.cgi is, what the !^/.*/ is doing, etc.. if this doesn't work