Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

188
Views
Is it possible with .htaccess?

I currently have a lot to do with Typo3 (10.3) and am generally quite good at it. But there is a challenge that makes me despair.

Maybe it is simple for one or the other but I think I'm on the tube. It is roughly about having an intranet exposed to the outside world. (an LDAP query will come later)

I have the following URL internally (intranet.unternehmen.de).

Now everything works fine on the internal side, and there is a reverse proxy entry to the outside app.unternehemen.de/intranet delivers this page.

The problem now is that the page is displayed, but all references / images / CSS are not there because the folder / intranet / is still missing in the URL. (If this folder is manually attached to a URL of an image or PDF, it works wonderfully.

There must be a way to add this folder as soon as the host e.g. app.unternehmen.de is?

I have already made various attempts to solve this using .htaccess, but these rules are not satisfactory.

e.g.

RewriteEngine On
#RewriteCond% {HTTP_HOST} "^ app.unternehmen.de $" [NC, OR]
RewriteCond% {HTTP_HOST} "^ app.unternehmen.de $" [NC] RewriteRule "^ / intranet /(.*)$" "http://app.unternehmen.de/intranet/" [R = 301, L]

or in TypoScript (if someone has an idea)

[globalString = IENV: HTTP_HOST = app.unternehmen.de]
cURL = app.unternehmen.de/intranet/
[END]
over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Okay there is an solution.

In Version 10 there are new selectors. Following snipped works.

[!ip("192.168.*")]
config {
    absRefPrefix = /intranet/
}
[END]
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!