View Single Post
Old 05-27-2011, 08:50 PM  
VIPimp
Marina WILL have my babies!
 
Industry Role:
Join Date: May 2003
Posts: 9,234
Quote:
Originally Posted by fris View Post
maybe something like this?

Code:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?domain\.com$ [NC]
RewriteRule ^([a-z0-9]+)$ http://otherdomain.com/folder/$1/folder [NC,R=301,L]
(removes www from domain, not really needed)
Thank you Fris, EXACTLY what we were looking for... BUT do you know how we can make it work if the variable also has dashes in it.
This does not work if its something like domain.com/xx-xxxx-xxxxx ...we need it to work in both situations.
VIPimp is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote