Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Javascript-processed fake URLs #103

Open
mdrejhon opened this issue Mar 11, 2023 · 0 comments
Open

Support Javascript-processed fake URLs #103

mdrejhon opened this issue Mar 11, 2023 · 0 comments

Comments

@mdrejhon
Copy link

mdrejhon commented Mar 11, 2023

Hello,

In a specific website's .htaccess file, I have all 404 URLs reprocessed by index.html and index.php to re-parse the URLs (Javascript-powered URL parsing)

So I want everything in a URL bar http://localhost:8080/dothis and https://localhost:8080:dothat

To load the same URL (the / which is processed by either the index.html or index.php)

I tried the wildcarded URL route, but it does not work:

image

So, there seems to be no way to support JavaScript-parsed dynamic URLs (nonexistent URLs that "exists" because the main index.html or index.php's own JavaScript reprocesses the URL from the bar to do an action based on a URL).

Can this be added as a feature, either by:

(1) Wildcarded URL match goes to same actual URL; or
(2) A way to specify that 404'd pages load a specific URL (so its javascript engine can parse the actual URL to do custom actions).

I might dig into the source to make the change within a few months (if I don't find an alternate extension that lets me redirect all URLs to a single localhost URL) but if anyone can comment on the easiest way to pull this off - let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant