20,552 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
63
views
How to get Apache to rewrite to a static version of my PHP/HTML file?
I put the following in my .htaccess file:
RewriteCond %{DOCUMENT_ROOT}/index.html.static -f
RewriteRule ^index.html$ /index.html.static
But no joy. If I comment out the first line - the condition - ...
4
votes
1
answer
91
views
Transforming project into multilingual using .htaccess
I have a task to transform a project that currently works in a single language into a multilingual project.
The current project URL structure looks like this:
www.site.com
www.site.com/contact.php
www....
0
votes
0
answers
92
views
Weird behavior, htaccess work in both ways?
Request https://example.com/ , htacces file :
RewriteEngine On
RewriteRule ^$ /one
RewriteRule ^/one /two [R]
result I get https://example.com/two, remove the slash in the second RewriteRule
...
0
votes
1
answer
73
views
Rewrite URL on shared hosting Laravel [closed]
I currently have my Laravel project accessible via the URL:
https://URLXX.com/dev/public/
I’d like to access it directly using:
https://URLXX.com/dev
The same setup should also work for my staging and ...
0
votes
0
answers
73
views
Spring Security SAML in Springboot 3.5.x not responding to forwarded requests
I have an older version of my app that I upgraded to SpringBoot 3.5.x and the SAML ACS URL changed after upgrading. So I used urlrewrite to forward the request from the old URL to the new URL. ...
0
votes
1
answer
93
views
How to extract the original domain from wrapped links (SafeLinks, tracking URLs)
I’m using the Nager.PublicSuffix library in C# to extract domains from URLs. It works fine for normal links, but I’m struggling with cases where the link is wrapped by Microsoft SafeLink's or other ...
0
votes
0
answers
43
views
How to forward /api using frontendconfig to / in kubernetes ingress?
I am using helm to create kubernetes resouces and manifest is as below
---
# Source: project-app/charts/backend/templates/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: ...
0
votes
0
answers
38
views
htaccess rule run on files without folders
the following htaccess rule will redirect files without extension (contact) to (contact.php)
but it also run on folders
I want it to run only on files only and skip running on folders
RewriteEngine on
...
1
vote
1
answer
89
views
Next.js host based rewrite did not trigger on the root path
I want my subdomain sub.example.com to render the page example.com/brand without changing the URL.
Examples
sub.example.com/ should render example.com/brand
sub.example.com/work should render example....
0
votes
0
answers
32
views
Rename get parameter via mod_rewrite
I want to rename specific http get parameter since application (NextCloud) changed it from path to dir and I want to preserve compatibility with old links.
Original URL was: https://example.com/index....
1
vote
0
answers
63
views
php serve file to client
UPDATE – Solution –
<?php
include 'loggercode.php';
$filename = "pages-26-27.pdf";
header("Content-type: application/pdf");
header("Content-Length: "...
0
votes
0
answers
51
views
htaccess - Execute redirection before checking authorization
My website is divided in 3 parts, one part for PC/APPLE, second part for MOBILE and third part for ADMIN.
I have an htaccess that does the trick to redirect user to PC/APPLE part or to MOBILE part. ...
0
votes
2
answers
86
views
iis rewrite rule to apply only for base url... (and https too)
This should be easy (if possible), but for some reason, I cannot find an example, and an HTML redirect causes too many redirects. This is for a site with abc.123.whatever binded to it.
I'm looking for:...
0
votes
0
answers
43
views
Apache not forwarding bot (Googlebot) requests to Prerender self-hosted service
I'm using Apache to serve a React page and have set up a self-hosted Prerender service to serve prerendered HTML to crawlers like Googlebot.
My goal is that when a bot (e.g., Googlebot) visits https://...
2
votes
1
answer
36
views
URL rewrite with an unencoded hash (#) character and an encoded space (%20)
I am looking to create a rewrite file (.htaccess) for the National Library of Medicine (NLM) Classification, which uses URLs of this form (https://classification.nlm.nih.gov/schedules/QS#QS%2023) to ...