#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2012
    Posts
    47
    Rep Power
    3

    .htaccess mod_rewrite


    My .htaccess file:
    Code:
    ErrorDocument 404 http://mysite.com/404.php
    I want the invalid page to show in the url bar instead of redirecting me to a webpage.

    When an invalid link is clicked it takes a user to this page, however in the url it reads http://mysite.com/404.php I want it to read the incorrect URL so they can let me know what page is incorrect.
  2. #2
  3. Jealous Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    14,302
    Rep Power
    9400
    You gave it a whole URL so it will redirect to that. Keep it at just the filename. With the leading slash.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2012
    Posts
    47
    Rep Power
    3
    Originally Posted by requinix
    You gave it a whole URL so it will redirect to that. Keep it at just the filename. With the leading slash.
    Yes, that worked. Thanks!

IMN logo majestic logo threadwatch logo seochat tools logo