| | | | |
| |||||||
| Server, Hosting und Workstations Server-Konfigurationsdateien (.htaccess/httpd.conf) und Arbeiten auf Serverebene |
|
| | LinkBack | Themen-Optionen | Thema bewerten |
| | |
| Neuer Benutzer Registriert seit: 19.07.2009
Beiträge: 7
PHP-Kenntnisse: Fortgeschritten ![]() | Hallo, ich habe ein .htaccess Problem. Ich habe folgendes Url Schema: http://example.com/subdomain/ nun möchte ich per .htaccess die Url zu folgendem umschreiben: http://subdomain.example.com/. Mein Server ist Wildcard "fähig". Mein Ansatz sieht so aus: Code: RewriteRule ^(.*).example.com/$ example.com/$1 [L] Viele Grüße Daniel Geändert von Query (04.12.2010 um 16:26 Uhr). |
| | |
| | |
| PHP Code Flüsterer Registriert seit: 21.08.2005 Beiträge: 4682 PHP-Kenntnisse: Fortgeschritten | |
| | |
| Supermoderator HD Registriert seit: 16.03.2008
Beiträge: 8.709
PHP-Kenntnisse: Fortgeschritten ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Auf andere Domains und Subdomains kannst du nur weiterleiten, aber nicht intern umschreiben. Z.B. so: Code: RewriteCond %{HTTP_HOST} ^example.org [NC]
RewriteRule ^(\w+) http://$1.example.org/ [R=301,L]
__________________ Refining Linux Advent Calendar series “24 Outstanding ZSH Gems” |
| | |
|
| Themen-Optionen | |
| Thema bewerten | |
|
|
Ähnliche Themen | ||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| Internal Server Error, .htaccess | Alex_ | Server, Hosting und Workstations | 2 | 20.10.2010 14:33 |
| In haupt .htaccess Passwortschutz für Unterordner festlegen | smilla | Server, Hosting und Workstations | 3 | 26.07.2010 12:37 |
| .htaccess wird ignoriert | BlackScorp | Server, Hosting und Workstations | 0 | 01.07.2010 10:34 |
| .htaccess Schutz nur für bestimmte Useragents | smilla | PHP Tipps 2010 | 2 | 17.06.2010 17:35 |
| .htaccess bei Xampp | luks2com | Server, Hosting und Workstations | 2 | 25.05.2010 07:46 |
| [Erledigt] .htaccess // php_value max_execution_time | grrrlinator | Server, Hosting und Workstations | 2 | 08.04.2010 12:28 |
| Problem mit .htaccess auf lokal (Vista) xampp | Mr.Karl | PHP Tipps 2008 | 13 | 19.09.2008 04:28 |
| Subdomain per .htaccess | Ithron | Server, Hosting und Workstations | 0 | 04.09.2007 15:20 |
| DNS Subdomain | pHoEnIx-sTyLe | Server, Hosting und Workstations | 0 | 24.03.2007 11:43 |
| .htaccess | LA-Finest | HTML, Usability und Barrierefreiheit | 4 | 28.02.2007 22:39 |
| register_globals per .htaccess auf off stellen | A Hoppe | PHP Tipps 2006 | 4 | 26.03.2006 12:58 |
| aktuelle subdomain auslesen | PHP Tipps 2007 | 3 | 17.12.2005 13:09 | |
| confixx: subdomain auf ip adresse weiterleiten lassen !?!? | Fraylman | PHP Tipps 2005 | 4 | 27.01.2005 11:23 |
| PHP und SubDomain ( IIS Windows Server ) Tip ! | Off-Topic Diskussionen | 2 | 08.07.2004 09:00 | |
| Problem mit .htaccess und php | PHP Tipps 2004 | 2 | 05.07.2004 14:06 | |