I'm trying to achieve something with .Htaccess RewriteEngine.
I want to be able to controll subfolders via one single .Htaccess file, currently to get this working I have to have the same .Htaccess file in every folder & subfolder but it would be great to just have one in the ROOT folder to avoid copy-pasting.
Currenty my structure looks like this:
ROOT
Folders contain images that are accessed by index.php?i=IMG_NAME
and by using the following
RewriteEngine on
RewriteRule ^([^/\.]+)$ index.php?i=$1 [L]
I can use for example: Images/2012/January/IMG_NAME
and it works fine to load the image. But as mentioned I have to have the above .Htaccess file in every folder & subfolder to get it working, otherwise I have to use Images/2012/January/?i=IMG_NAME
are there any workarounds for this?
I know this only skirttails the issue but if you don't have the actual url point to a real folder then you can run everything from the .htaccess file from public_html.
So if you actually stored the images in /data/2012/January/*
Then had the url that is used by /Image/2012/January/IMG_NAME