Different urls points to only one webpage

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Different urls points to only one webpage

Postby xescjp » 05. October 2023 09:36

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
xescjp
 
Posts: 2
Joined: 05. October 2023 09:30
XAMPP version: 3.3.0
Operating System: Windows 10

Re: Different urls points to only one webpage

Postby Nobbie » 05. October 2023 11:39

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.
Nobbie
 
Posts: 13176
Joined: 09. March 2008 13:04

Re: Different urls points to only one webpage

Postby xescjp » 06. October 2023 08:06

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
xescjp
 
Posts: 2
Joined: 05. October 2023 09:30
XAMPP version: 3.3.0
Operating System: Windows 10


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 162 guests