1
sikey
Redirecting to subdomain
  • 2006/5/4 6:26

  • sikey

  • Not too shy to talk

  • Posts: 151

  • Since: 2003/4/29


I am trying to perm. redirect all http://www.domain.com/modules/mydownloads/singlefile.php?lid=NUMBER to http://subdomain.domain.com/modules/mydownloads/21357

I already got the http://subdomain.domain.com/modules/mydownloads/21357
working, but now i want to 301 all existing singlefile.php urls to the new one... how can i do this in htaccess?

This is what i have so far...

RewriteEngine On
RewriteOptions inherit
Options +FollowSymlinks
RewriteCond %{HTTP_HOST} ^(www\.)?domain\.com/modules/mydownloads/([0-9]+).*$ [NC]
RewriteRule ^ http://subdomain.domain.com/modules/mydownloads/([0-9]+).*$ [R=301,L]

Any help is greatly appreciated :)

Login

Who's Online

385 user(s) are online (291 user(s) are browsing Support Forums)


Members: 0


Guests: 385


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits