Pass root all request of certain relative path to another directory using htaccess

43 Views Asked by At

Below is example of directories and files in hosting

/MyDomainDotComDir/
../.htaccess
../Applications/
../othersDirInsideThisDomain/
../there-is-no-uploads-dir-here/

/MyCustomDir/
../uploads/

/OtherDomainDir/

Currently

if clients request on mydomain.com/uploads/* it will looking at /home/myLinuxUsername/MyDomainDotComDir/uploads/

__

Question

How to change or pass it to find the files at /home/myLinuxUsername/MyCustomDir/uploads/ instead of /home/myLinuxUsername/MyDomainDotComDir/uploads/ USING .htaccess?

Server status:

  • CentOs
  • Shared hosting
  • Server prodiver support told to me. I can't tweak Virtual Host because I'm on shared hosting
0

There are 0 best solutions below