Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[mod_rewrite] Url umschreiben

Empfohlene Antworten

Ich versuche gerade

www.domain.net/de/index.html auf www.domain.net/index.php?lang=de

umzuschreiben:

RewriteRule ^([a-z]{2})/(.*)\.html$ $2\.php?lang=$1 [L]

Funktioniert nur leider nicht und ich find den Bock nicht... kann mir wer weiter helfen?

Danke

mfg

Eth

kann mir wer weiter helfen?

Also deine RegEx scheint ok zu sein. Wenn du Zugriff auf die httpd.conf hast, solltest du dir mal das Log von mod_rewrite ansehen. Dazu


<virtualhost blablub>

RewriteEngine On

RewriteCond %{REQUEST_URI} ^([a-z]{2})/(.*)\.html$

Rewrite Rule ^([a-z]{2})/(.*)\.html$ $2\.php?lang=$1 [L]

RewriteLog rewrite.log

RewriteLogLevel 5

</virtualhost>

in die httpd.conf (o.ä.) eintragen. Über die .htaccess ist das loggen nicht möglich.

Sieht so aus als ob es im Endeffekt doch funktioniert.

Allerdings iss das doch ne gute Idee die RewriteCond da noch drüber zu setzen *gg*

Danke dir

Eth

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.