Jivanmukta
unread,Sep 13, 2019, 2:14:17 PM9/13/19You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Jestem kiepski z mod_rewrite. Próbuję napisać regułę tłumaczącą adres
localhost/~robert/invoice-a6c34n1x98.html
na adres
localhost/~robert/announcement/invoice?c=a6c34n1x98
Napisałem tak:
RewriteRule ^invoice-([a-zA-Z0-9]*)\.html$
/announcement/invoice?c=$1 [L]
i dostaję 404 Not Found. Nie wiem co robię źle. Oto mój cały .htaccess:
#v+
AuthUserFile "/home/robert/rozgloszenia/application/resources/.htpass"
AuthName "Strony zabezpieczone"
AuthType Basic
require valid-user
DirectoryIndex index.php
RewriteEngine on
RewriteBase /~robert/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|robots\.txt|denial\.html|resources|captcha)
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
RewriteRule ^invoice-([a-zA-Z0-9]*)\.html$ /announcement/invoice?c=$1 [L]
php_value upload_max_filesize 75M
php_value post_max_size 100M
#v-