This must be a really basic problem for almost every site out there.
How can I get includes to work for subdirectories (i.e. mysite.com/subdirectory/file.php) when all of my includes are stored in a /includes folder off the root directory? I've been Googling and have come across dozens of cryptic solutions.
It would be great if it was a .htaccess thing, because I can foresee that being the simplest way. That way, you can still use simple php to include the file, right?
I had an answer to this posted by Dormilich before, but it was too complex for me to get my noobish head around. Any step-by-step advice would be welcomed with open arms!
How can I get includes to work for subdirectories (i.e. mysite.com/subdirectory/file.php) when all of my includes are stored in a /includes folder off the root directory? I've been Googling and have come across dozens of cryptic solutions.
It would be great if it was a .htaccess thing, because I can foresee that being the simplest way. That way, you can still use simple php to include the file, right?
I had an answer to this posted by Dormilich before, but it was too complex for me to get my noobish head around. Any step-by-step advice would be welcomed with open arms!
Comment