View Single Post
Old 02-03-2014, 08:11 PM  
PornCious
Registered User
 
Industry Role:
Join Date: Nov 2012
Posts: 50
Following is the basic redirection. However, looks like you need multiple filtration which should not be impossible...
Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^sub.yourdomain.com$
RewriteRule ^(.*)$ http://yourdomain.com/$1 [R=301,L]
Try asking an apache expect in stackexchange or stackoverflow.

You will need one adddition line like RewriteCond %{REQUEST_URI} before rewrite rule.
PornCious is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook