Forum Moderators: phranque
The above code looks ahead to see if a directory will throw a 404 and then uses the providers text map. My question is, do I have to have a default fall back url after the pipe because if a directory is not found and the string is not in the providers map - i do want to throw a 404
The above code looks ahead to see if a directory will throw a 404
. My question is, do I have to have a default fall back url after the pipe
RewriteCond ${providers:$1} ^(.+)
RewriteRule ^(.*) %1 [L]
This is what I have in the httpd.cof under the particular domain:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteOptions inherit
RewriteMap providers txt:/usr/local/apache2/conf/providers.map
</IfModule>
And I placed your suggestion in the .htaccess under the root of the site
in the .htaccess
Examine problems with a RewriteLog.