WordPress.org

Ready to get started?Download WordPress

Forums

wordpress page url end with number is not 404? (3 posts)

  1. obgaoml
    Member
    Posted 1 year ago #

    the url ends with a number cannot get 404 page?
    For example,
    http://www.myweb.com/page/subpage/subpagetwo/ is my url
    if I add any numbers to the end like
    http://www.myweb.com/page/subpage/subpagetwo/23423423
    http://www.myweb.com/page/subpage/subpagetwo/3453453113132

    I cannot get 404 error page, if replace those numbers to letters, works fine.
    Could please someone give some advices? thanks

  2. Rajesh Soni
    Member
    Posted 1 year ago #

    Let us show how your .htaccess file looks like?

  3. obgaoml
    Member
    Posted 1 year ago #

    Thanks
    the only thing I added is
    RewriteRule ^page/$ "page/subpage" [R=301,L]

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags