my apache only accpets custom 404 pages .htm, can't use .php
Posted by: costamatrix (---.virtua.com.br)
Date: September 29, 2009 06:00AM

Hi, i have created a custon 404 page..its is called /404.php

my .htaccess file:

│RewriteEngine On
│RewriteRule ^(.*)\/(.*)\/(.*)?$ /$1.htm [E=rwdone?yes,L]

│ErrorDocument 404 /404.php


when i retrieve a page that does not exist, a normal 404 error is showed...but if i change the .htacces to:

│RewriteEngine On
│RewriteRule ^(.*)\/(.*)\/(.*)?$ /$1.htm [E=rwdone?yes,L]

│ErrorDocument 404 /404.htm


and rename my 404.php to 404.htm it works...the php commands are showed like it was text, but the redirect at least works...

what i have to do to be able to use a custom 404 page dinamic? (php)

Options: ReplyQuote
Re: my apache only accpets custom 404 pages .htm, can't use .php
Posted by: toumimi (---.123.140-88.rev.gaoland.net)
Date: September 29, 2009 12:27PM

Sorry but this forum is for debugging Wamp...
You should ask your question in a more specific forum and give all your htaccess content, because I don't see your variable assignement as seen here : [www.webmasterworld.com]

Good luck anyway.

Florian

WampServer Patch (Screenshots)
Topic EN : www.wampserver.com
Topic FR : www.wampserver.com

Options: ReplyQuote


Sorry, only registered users may post in this forum.