Mobile app version of vmapp.org
Login or Join
Lengel546

: Redirecting all subfolder URLs to another domain I have a domain that is example.com/portfolio/some-url. I would simply like to direct all traffic that would normally go to the subfolder /portfolio

@Lengel546

Posted in: #301Redirect #Redirects

I have a domain that is example.com/portfolio/some-url.

I would simply like to direct all traffic that would normally go to the subfolder /portfolio to a new domain:

new-domain.com/


How would I do this? Htaccess? Is there a way to do it to separate affiliation?

Basically, all the /portfolio items are affiliate links that I don't need anymore and don't want the possibility of it decreasing my site rank in Google. What type of redirect should I use?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Lengel546

2 Comments

Sorted by latest first Latest Oldest Best

 

@Heady270

Just write in the /portfolio subdirectory .htaccess file, and will moved all your subdirectory to newdomain.

RewriteEngine On
RewriteRule ^(.*)$ new-domain.com/porfolio/ [R=301,L]

10% popularity Vote Up Vote Down


 

@Murray432

You can use RedirectMatch for this with 301 code. This will tell Search Engines resource has moved permanently.

RedirectMatch 301 ^/portfolio/(.*)$ new-domain.com/portfolio/

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme