Page 1 of 1

Different urls points to only one webpage

PostPosted: 05. October 2023 09:36
by xescjp
Hello:

I have created forms in apache enivorment. I need to configure apache in the order to be able to request a form web page with different urls, avoiding to make direct calls to form page.

Is it possible. How can I get that? Thank you very much for your help.

Example:

User Call: https://domain.com/7843504353435
Points to: https://domain.com/form.php

User Call: https://domain.com/453032490324
Points to: https://domain.com/form.php

Re: Different urls points to only one webpage

PostPosted: 05. October 2023 11:39
by Nobbie
You could use different ALIAS statement to point to the same ressource.
Or do a rewrite with different RewriteRules pointing to the same ressource.

See the Apache docu for explanation and examples.

Re: Different urls points to only one webpage

PostPosted: 06. October 2023 08:06
by xescjp
Hello Nobbie:

You are right. I have found a complete tutorial of Mod Rewrite. I will use different patterns using conditions and Rewrite Rules. I recommend this tutorial to learn how to user Rewrite. It's great.
https://www.youtube.com/watch?v=wtkuTRur-_c

Thank you very much