Я пытаюсь установить-правила:-просто .htaccess правила URL-перезапись
- если я тип http://www.mydomain.it/notizie/LeDelizieDiCasa, Htaccess должен загрузить http://www.mydomain.it/?rssfeed=LeDelizieDiCasa страницы
- www.mydomain.it/categoria/Cucina Htaccess имеет загрузить http://www.mydomain.it/?categoryfeed=Cucina
Я пробовал:
RewriteCond %{REQUEST_URI} ^/?rssfeed=Cucina
RewriteCond %{HTTP_HOST} ^(www.)?mydomain.it$ [NC]
RewriteRule ^(.*)$ http://www.mydomain.it/categoria/Cucina [R,L]
но лань sn't work, и если я перейду к http://www.mydomain.it/categoria/Cucina, то у меня ошибка 404.
Кто может мне помочь?
mycurrent .htaccess:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase/
RewriteRule ^index\.php$ - [L]
#rule 1
RewriteCond %{HTTP_HOST} ^(www\.)?mydomain\.it$ [NC]
RewriteRule ^notizie/([^/]+)$ /?rssfeed=$1 [L]
#rule 2
RewriteCond %{HTTP_HOST} ^(www\.)?mydomain\.it$ [NC]
RewriteRule ^categoria/([^/]+)$ /?categoryfeed=$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Спасибо большое