possibly a mod_rewrite question (4 posts)

  1. nsxpower
    Posted 11 years ago #

    Ok, I am observing an "interesting" behaviour. When I point my browser to a non-existent entry i.e. http://www.w-a-s-a-b-i.com/archives/2004/04/07/this_should_return_a_404/ should return a 404 error document ... but it does not, although http://www.w-a-s-a-b-i.com/archives/2004/04/07/this_should_return_a_404/index.php will return a 404! Why is this happening?
    I wrote a nice little custom 404 page, which takes "this_should_return_a_404" and uses it to do a search, if empty it will redirect to another 404 with suitable info.

  2. nsxpower
    Posted 11 years ago #


  3. phidauex
    Posted 11 years ago #

    Is there a way to direct WP to return a 404 in case of a 'no posts matched your criteria'? Or could a plugin automatically generate search results and display them on the page underneath the 'no posts matched your criteria' text?

  4. talishka
    Posted 8 years ago #

    I'm having a similar problem, when i try to access to any fake URL as http://www.talishka.com.ar/bleh.txt or http://www.talishka.com.ar/bl/eh.txt i'm gettin the index page. In the address bar sez http://www.talishka.com.ar/bleh.txt but i'm seein the index.php ..

    I also have customized 404 error page, when i desactivate the wp modifications to the .htaccess everythin (but permalinks) works..

    This is my .htaccess:

    ErrorDocument 401 /errorpages/401.html
    ErrorDocument 400 /errorpages/400.html
    ErrorDocument 403 /errorpages/403.html
    ErrorDocument 404 /errorpages/404.html
    ErrorDocument 500 /errorpages/500.html

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    # END WordPress

    Any ideas? Thx. in advance

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.