+ Reply to Thread
Results 1 to 4 of 4

Thread: Any way to avoid changing URL on error

  1. #1
    Junior Member chaotic_iak is on a distinguished road
    Join Date
    Dec 2011
    Location
    Indonesia
    Posts
    12

    Question Any way to avoid changing URL on error

    Is there any way to avoid changing the URL to the custom error page's URL if an error occurred?

    For example, one entered mydomain.com/nonexistentpage.html, and gets 404 Error. I have a custom error page on mydomain.com/404.html and the corresponding command in. htaccess file "ErrorDocument 404 mydomain.com/404.html". The content of the page is what 404.html has, but I want the address bar shows nonexistentpage.html instead of 404.html.

  2. #2
    Super Moderator Amator is on a distinguished road Amator's Avatar
    Join Date
    Sep 2010
    Location
    Kiev, Ukraine
    Posts
    1,463

    Re: Any way to avoid changing URL on error

    Quote Originally Posted by chaotic_iak View Post
    Is there any way to avoid changing the URL to the custom error page's URL if an error occurred?

    For example, one entered mydomain.com/nonexistentpage.html, and gets 404 Error. I have a custom error page on mydomain.com/404.html and the corresponding command in. htaccess file "ErrorDocument 404 mydomain.com/404.html". The content of the page is what 404.html has, but I want the address bar shows nonexistentpage.html instead of 404.html.
    Hello! You can rename your file to "nonexistentpage.html". URL spoofing is forbidden, because it's hасkіng technique and it won't work for modern browsers. Or you want something connected with mod_rewrite?
    Прочитайте перед созданием темы
    No support via PM - forum is for support.

  3. #3
    Junior Member chaotic_iak is on a distinguished road
    Join Date
    Dec 2011
    Location
    Indonesia
    Posts
    12

    Re: Any way to avoid changing URL on error

    I'm hosting an online riddle game, so it's very common that people get 404 Error because they answered incorrectly. That way, renaming the 404 Error page to all possible combinations is practically impossible. And what is mod_rewrite?

  4. #4
    Super Moderator Amator is on a distinguished road Amator's Avatar
    Join Date
    Sep 2010
    Location
    Kiev, Ukraine
    Posts
    1,463

    Re: Any way to avoid changing URL on error

    You can read about it here mod_rewrite - Apache HTTP Server
    Прочитайте перед созданием темы
    No support via PM - forum is for support.

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34