with news.domain.com i'd have redirect www.domain.com/news displays posts. i've got working.
however when user visits , old tumblr wordpress link so:
news.domain.com/post/[id]/[post title] i'd have redirect to:
www.domain.com/[post title]
the problem i'm having news.domain.com www.domain.com/news messing posts rewrite , pre-pending url this: www.domain.com/news/[post title] doesn't work.
how set htaccess work both scenarios?
try :
rewriteengine on #rule /posttitle rewritecond %{http_host} ^news\. [nc] rewriterule ^([^/]+)/([^/]+)/([^/]+)/?$ http://domain.com/$3 [r,nc,l] #rule /news rewritecond %{http_host} ^news\. [nc] rewriterule ^(.*)$ http://domain.com/news [r,nc,l]
Comments
Post a Comment