D
D
Dmitry2014-06-23 18:31:29
URL Handling
Dmitry, 2014-06-23 18:31:29

RewriteRule in htaccess?

Hello!
Help me solve the problem, you need to open php from a specific url!
More or less like this:

RewriteRule ^?feed=news.yandex.ru$  /rss.php [L,R=301]

But he doesn’t want to, he gives an error and everything, as I understand it, the problem is in the question mark, please help!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg Krasnov, 2014-06-23
@muldy

Try this:
RewriteCond %{QUERY_STRING} ^feed=news.yandex.ru$
RewriteRule ^(.*)$ /rss.php? [L,R=301]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question