Make subfolder the root folder for everything in subfolder

Posted by Illes Peter on Stack Overflow See other posts from Stack Overflow or by Illes Peter
Published on 2010-04-18T15:38:44Z Indexed on 2010/04/18 15:43 UTC
Read the original article Hit count: 316

Filed under:
|

Hi there. I am working on a project that i host on my server.

My server is mydomain.com and i want my project to run in mydomain.com/project.

I wish to put an htaccess file in the project subfolder, so that in every file of the project, / will point to mydomain.com/project instead of mydomain.com

So / will be mydomain/project, /lib/img will be mydomain/project/lib/img, etc.

Any help will be greatly appreciated.

© Stack Overflow or respective owner

Related posts about .htaccess

Related posts about htaccess