mod rewrite



# zapnout mod rewrite
RewriteEngine on

# zmena pripony
(nastavit Base, aby nepresmeroval na umisteni souboru ve filesystemu - /var/www/html...)
RewriteBase /mujweb
RewriteRule ^(.*).html $1.php

# presmerovani na novy web/domenu
RewriteCond %{HTTP_HOST} ^stara.domena [NC]
RewriteRule ^(.*)$ http://nova.domena/$1 [R=301,QSA,L]

# presmerovani do jineho adresare
RewriteRule ^stary/(.*)$ /novy/$1 [R=301,L]
Last update:
2007-03-23 10:16
Author:
Daniel
Revision:
1.2
Average rating:0 (0 Votes)

You cannot comment on this entry

Chuck Norris has counted to infinity. Twice.