Thread: 301 Redirect
View Single Post
Old 03-01-2021, 01:56 PM   #1
Ramster
Life is good
 
Ramster's Avatar
 
Join Date: Apr 2003
Location: Ottawa, Canada
Posts: 10,721
Send a message via ICQ to Ramster Send a message via AIM to Ramster
301 Redirect

Trying to redirect everything that comes into a folder, problem is it's often subfolders within it. Any ideas?

.htaccess:
RewriteRule ^/(.*)$ https://domain.com/site/$1 [L,R=301]

Placing it in domain.com/site/scene/ folder so when someone lands on domain.com/site/scene/757/1922/her-video they get redirected to just https://domain.com/site/

Anyone?
__________________
Pornstar Legends | Hot Babes 4K | Hungarian Girls
Skype: robmurray999
Ramster is offline   Reply With Quote