Our website (ravennuke release) is installed like this:
Only registered users can see links on this board! Get registered or login to the forums!
at
Only registered users can see links on this board! Get registered or login to the forums!
we have a redirect in place that just puts it through to /foldername. (I did this because of some tinkering for a theme in the past and then I just had a backup in foldername2 and then I just had to change the name of that folder and all was fine again as I have a very slow upload speed)
At first we were having the .htaccess in the "foldername" folder and not in the root (www.oururl.com). But now I changed it and put it to the root, so now it has the .htaccess, .staccess. and .ftaccess in the root along with the redirect.html, and nuke is installed in the "/foldername" folder.
So I was just asking myself if this is the right thing to do, or if I should keep the .htaccess in the same location as the index.php from phpnuke is?
In case my attempt to explanation is too confusing:
first case:
Code:
www.oururl.com/foldername/.htaccess
Only registered users can see links on this board! Get registered or login to the forums!
Only registered users can see links on this board! Get registered or login to the forums!
Only registered users can see links on this board! Get registered or login to the forums!
(from phpnuke)
Now:
Code:
www.oururl.com/.htaccess
Only registered users can see links on this board! Get registered or login to the forums!
Only registered users can see links on this board! Get registered or login to the forums!
Only registered users can see links on this board! Get registered or login to the forums!
(from phpnuke)
(offcourse I changed the location of the files in the sentinel menu, and also the location of the .staccess in the .htaccess file)
Not sure it matters, as long as it can find the staccess file.
Yep it does (at least it asks me for the username and pass and I can login, as well as the access to .staccess is denied)
The reason I changed it to the root was because I have no idea if a block in the .htaccess works from the directory and down, or also up. If it's in the /foldername and only blocks from there and down, ppl can still go to the main url or sth and won't be blocked.. Sort off
It works down, but not up. If you have the htaccess in the subdirectory, it won't protect the root. If there is something in the root you need to protect, you need it there. If you only need to protect the subdirectory, you can put it in either place.
View next topic View previous topic
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum