# Mod\_rewrite

An Apache HTTP Server module that provides rule-based rewriting of requested URLs using regular-expression rules.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## mod\_rewrite - wymuszenie małych liter w adresie URL

DevFeed: [mod\_rewrite - wymuszenie małych liter w adresie URL](<https://devfeed.tech/articles/mod-rewrite-wymuszenie-ma-ych-liter-w-adresie-url-27540.md>)

Original publisher: [Read original article](<https://gagor.pro/2012/09/mod_rewrite-wymuszenie-malych-liter-w-adresie-url/>)

Author: Tom

Published: 2012-09-25T00:00:00Z

Content type: tutorial

Language: pl

Sources: [Tomasz Gągor](<https://devfeed.tech/sources/tomasz-gagor.md>)

Topics: [Mod\_rewrite](<https://devfeed.tech/topics/mod-rewrite.md>)

Tags: [apache](<https://devfeed.tech/tags/apache.md>), [linux](<https://devfeed.tech/tags/linux.md>), [mod-rewrite](<https://devfeed.tech/tags/mod-rewrite.md>), [rewrite](<https://devfeed.tech/tags/rewrite.md>)

### AI overview

The article explains how to use Apache mod_rewrite to force lowercase URLs. It describes why case differences can cause requests to map to nonexistent directories and presents a tolower map with redirection for URLs containing uppercase letters.

### Source excerpt

Co prawda adresy URL pozwalają na stosowanie zarówno dużych jak i małych liter ale różne systemy mogą je różnie obsługiwać i może się trafić sytuacja, w której nie zechcemy by np. duże litery w ogóle pojawiały się w adresach URL. Doskonały przykład to mój niedawny wpis: Apache: ograniczenie dostępu dla zalogowanych użytkowników z mod_rewrite i mod_auth_basic . Zachodzi tam sytuacja, w której katalog użytkownika jest jego loginem małymi literami (bądź dużymi - jak kto woli), a użytkownik wpisując login może użyć zarówno małych jak i dużych liter i tutaj zaczyna się jazda. Można użyć modyfikatora NC (no case), ale to wpłynie tylko na porównania - przepisanie ścieżki na nazwę podaną przez usera (z dużymi i małymi literami) przekieruje do katalogu, którego nie ma (bo jest katalog tylko małymi/dużymi).

## Apache: ograniczenie dostępu dla zalogowanych użytkowników z mod\_rewrite i mod\_auth\_basic

DevFeed: [Apache: ograniczenie dostępu dla zalogowanych użytkowników z mod\_rewrite i mod\_auth\_basic](<https://devfeed.tech/articles/apache-ograniczenie-dostepu-dla-zalogowanych-uzytkownikow-z-mod-rewrite-i-mod-auth-basic-27535.md>)

Original publisher: [Read original article](<https://gagor.pro/2012/09/apache-ograniczenie-dostepu-dla-zalogowanych-uzytkownikow-z-mod_rewrite-i-mod_auth_basic/>)

Author: Tom

Published: 2012-09-09T00:00:00Z

Content type: tutorial

Language: pl

Sources: [Tomasz Gągor](<https://devfeed.tech/sources/tomasz-gagor.md>)

Topics: [Mod\_rewrite](<https://devfeed.tech/topics/mod-rewrite.md>), [.NET Framework](<https://devfeed.tech/topics/net-framework.md>)

Tags: [apache](<https://devfeed.tech/tags/apache.md>), [auth](<https://devfeed.tech/tags/auth.md>), [debian](<https://devfeed.tech/tags/debian.md>), [linux](<https://devfeed.tech/tags/linux.md>), [login](<https://devfeed.tech/tags/login.md>), [mod-rewrite](<https://devfeed.tech/tags/mod-rewrite.md>), [rewrite](<https://devfeed.tech/tags/rewrite.md>), [security](<https://devfeed.tech/tags/security.md>), [user](<https://devfeed.tech/tags/user.md>)

### AI overview

This Polish tutorial explains how to use Apache mod_rewrite with mod_auth_basic to redirect authenticated users to directories named after their logins and prevent access to other users' directories. It describes comparing the URI login with the REMOTE_USER value using RewriteRule and RewriteCond backreferences.

### Source excerpt

Niedawno trafiłem na ciekawy problem w mod_rewrite - by przekierowywać użytkowników logujących się jednym z modułów mod_auth_basic do dedykowanych im katalogów, równocześnie blokując dostęp do katalogów innych użytkowników. Nie brzmi to jakoś strasznie ale problem okazał się być całkiem nietrywialnym. Teoretyczne rozwiązanie sprowadzało się do wyszukania loginu użytkownika ze ścieżki URI i porównania z nazwą użytkownika ze zmiennej %{REMOTE_USER} - jeśli wartości się różnią to Forbidden. Ale szybko okazało się że w RewriteCond zmienne z dopasowań można podstawiać tylko w pierwszym parametrze i że o ile można RewriteCond'y połączyć wyrażeniami logicznymi typu AND/OR to nie ma możliwości porównania czy dopasowania z kolejnych RewriteCond'ów są identyczne. Po kilku dniach szperania w dokumentacji i różnych tutorialach udało mi się trafić na jedną wartościową wskazówkę ale tej stronki już nie ma, więc opiszę problem dla potomnych.

## Cal Henderson - Building Flickr

DevFeed: [Cal Henderson - Building Flickr](<https://devfeed.tech/articles/cal-henderson-building-flickr-35293.md>)

Original publisher: [Read original article](<https://darkcoding.net/future-of-web-apps/cal-henderson-building-flickr/>)

Author: Graham King

Published: 2006-02-18T13:39:52Z

Content type: article

Language: en

Sources: [Graham King](<https://devfeed.tech/sources/graham-king.md>)

Topics: [Web](<https://devfeed.tech/topics/web.md>), [web applications](<https://devfeed.tech/topics/web-applications.md>), [API](<https://devfeed.tech/topics/api.md>), [Ajax](<https://devfeed.tech/topics/ajax.md>), [Mod\_rewrite](<https://devfeed.tech/topics/mod-rewrite.md>), [XML](<https://devfeed.tech/topics/xml.md>), [Mobile](<https://devfeed.tech/topics/mobile.md>), [Open Data](<https://devfeed.tech/topics/open-data.md>), [export](<https://devfeed.tech/topics/export.md>), [import](<https://devfeed.tech/topics/import.md>), [Firefox](<https://devfeed.tech/topics/firefox.md>)

Tags: [ajax](<https://devfeed.tech/tags/ajax.md>), [api](<https://devfeed.tech/tags/api.md>), [export](<https://devfeed.tech/tags/export.md>), [firefox](<https://devfeed.tech/tags/firefox.md>), [futureofwebapps](<https://devfeed.tech/tags/futureofwebapps.md>), [import](<https://devfeed.tech/tags/import.md>), [mobile](<https://devfeed.tech/tags/mobile.md>), [mod-rewrite](<https://devfeed.tech/tags/mod-rewrite.md>), [notifications](<https://devfeed.tech/tags/notifications.md>), [software](<https://devfeed.tech/tags/software.md>), [web](<https://devfeed.tech/tags/web.md>)

### AI overview

Notes from Cal Henderson's talk on building Flickr, covering collaboration, data aggregation, public APIs, clean URLs, AJAX, Unicode, desktop and mobile integration, open data, and open content.

### Source excerpt

Build Flickr: Lessons from the Web 2.0 Pioneer.