Forum Moderators: phranque
php_value session.gc_maxlifetime 36000
php_value register_globals on
php_value max_execution_time 600
RewriteEngine on
RewriteRule ^(.+)\.gif¦jpg$ redirect.php
But not work. Return the message Internal Server Error.
Helps
Welcome to WebmasterWorld!
What did your error log say? This file is the first place to check when you get a server error.
You might want to try adding one directive, and correcting the RewriteRule:
Options +FollowSymLinks
RewriteEngine on
RewriteRule \.(gif¦jpg)$ /redirect.php [L]
Jim
-------------------------------------------
<VirtualHost www.domain.com:80>
ServerName www.domain.com
ServerAlias www.domain.com
DocumentRoot /home/domain/www/
ScriptAlias /cgi-bin/ "/home/domain/cgi-bin/"
ErrorLog /var/log/apache/domain.com-error_log
CustomLog /var/log/apache/domain.com-access_log combined
ServerAdmin webmaster@domain.com
<Directory /home/domain/www/>
Options -Indexes FollowSymLinks
AllowOverride AuthConfig
order allow,deny
allow from all
</Directory>
</VirtualHost>
-------------------------------------------------
It will be that AllowOverride? Set this for All and restart httpd?
The error log is with others lines , but nothing related with this error.
Of course, all that said, since you have write access to your httpd.conf, you may just want to shift your RewriteRules there; per the 'API Phases' section of [httpd.apache.org ], performance of mod_rewrite is better when used in httpd.conf than when used in .htaccess files.