Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

pretty urls

1 view
Skip to first unread message

Jivanmukta

unread,
Sep 13, 2019, 2:14:17 PM9/13/19
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-

0 new messages