Car Credit - Mortgages - Mortgage Calculator - Debt Consolidation - Loans

PDA

View Full Version : .htaccess redirect help


pgiddy
May 21st 2007, 6:00 pm
I would like to take the traffic coming to this page:

http://subdomain.domain.com/{keyword}

and redirect it to:

http://subdomain2.domain2.com/query?sub={keyword}

I would like to be able to enter any keyword dynamically and have it redirect to the second domain with the same keyword. How can I configure .htaccess to get this to work?

Thanks in advance. Positive reputation for anyone who helps. =)

Nintendo
May 21st 2007, 8:50 pm
http:/subdomain.domain.com/.htaccess

Options +FollowSymLinks +Indexes
RewriteEngine on
RewriteBase /
RewriteRule ^shop/(.*)$ http://subdomain2.domain2.com/query?sub=$1 [R=301,L]

Why would you redirect from a search engine friendly URL to one search engines hate!