WordPress.org

Ready to get started?Download WordPress

Forums

possibly a mod_rewrite question (4 posts)

  1. nsxpower
    Member
    Posted 10 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
    Member
    Posted 10 years ago #

    ditto

  3. phidauex
    Member
    Posted 10 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
    Member
    Posted 7 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]
    </IfModule>
    # END WordPress

    Any ideas? Thx. in advance

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.