logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Rewriting invalid vanity URL
Author
rabisco



Joined: 22 Oct 2014
Posts: 2
Location: Chicago, USA

PostPosted: Wed 07 Sep '16 4:24    Post subject: Rewriting invalid vanity URL Reply with quote

In my application the vanity url www.dev.com/community/test returns the custom 404 page, this is correct behavior.

The vanity url www.dev.com/test returns the out of the box 404 page.

I would to rewrite www.dev.com/test to www.dev.com/community/test, so that the custom 404 page is always returned for every invalid vanity url.

Thanks
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Wed 07 Sep '16 16:04    Post subject: Reply with quote

use ErrorDocument

see https://httpd.apache.org/docs/current/mod/core.html#errordocument
Back to top


Reply to topic   Topic: Rewriting invalid vanity URL View previous topic :: View next topic
Post new topic   Forum Index -> Apache