Kapitel 04: URLs umschreiben

This commit is contained in:
Sven Velt 2024-10-14 16:52:32 +02:00
parent 140112453a
commit 1973290a7a

View file

@ -0,0 +1,34 @@
##### Kapitel 4 - URLs umschreiben
### mod_alias
Include conf/extra/httpd-autoindex.conf
Alias /sysdoc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes
AllowOverride None
Require all granted
</Directory>
### mod_userdir
LoadModule userdir_module modules/mod_userdir.so
Include conf/extra/httpd-userdir.conf
### mod_rewrite
LoadModule rewrite_module modules/mod_rewrite.so
RewriteEngine On
RewriteRule ^/zwei\.html$ /eins.html
RewriteRule ^/drei\.html$ /eins.html [R]
## Weiteres
RewriteRule vier.html /eins.html [R]
RewriteRule ^/google\.html$ http://google.de [R]
RewriteRule ^/ssl\.html$ https://localhost/ssl.html [R]
RewriteRule phpmyadmin http://www.disney.com [R,NC]