Sunday, 15 February 2015

apache - .htaccess subdomain feeds redirect xml to php not working -


I am trying to redirect the subdomain feed to php files, but this is not working. Redirects from feeds / all / index.php

main domain is working.

  feed .example.com / all / index.xml /all/index.xml is also working subdomain redirect for  
  www.example.com feeds / sub / index.fp  

.

Php for feeds / index

I'm trying this way.

  Riverify ^ feeds / (. *) \. Xml $ / Feeds / $ 1.PHP [L]  

Also tried this way but it is not working.

  rewrite% {HTTP_REFERER} ^ http: //feeds.example.com/$ [NC] RewriteCond% {HTTP_REFERER} ^ http: //feeds.example.com$ [NC] RewriteRule ^ ([^ /] *) / (. *) \. Xml $ /feeds/$1.php [L]   << P> 

Try this rule:

RewityCand% {HTTP_REFERER} ^ https?: // feeds \ .example \ .com [nc] rivaritium ^ (. +?) \. Xml $ / Feeds / $ 1 .php [L, NC]

No comments:

Post a Comment