Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel(tm) v2.5.x
Author Message
bigbongo
New Member
New Member



Joined: May 25, 2008
Posts: 13

PostPosted: Fri May 30, 2008 7:48 am Reply with quote

I just searched the forum but couldn't find it ..

Our website (ravennuke release) is installed like this:

www.oururl.com/foldername/
at www.oururl.com 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

www.oururl.com/foldername/.staccess
www.oururl.com/foldername/.ftacces
www.oururl.com/foldername/index.php (from phpnuke)


Now:
Code:
www.oururl.com/.htaccess

www.oururl.com/.staccess
www.oururl.com/.ftaccess
www.oururl.com/foldername/index.php (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)

So which one is the right(best?) one?

Tnx,

Bongo
 
View user's profile Send private message
kguske
Site Admin



Joined: Jun 04, 2004
Posts: 6437

PostPosted: Fri May 30, 2008 8:07 am Reply with quote

Not sure it matters, as long as it can find the staccess file.

_________________
I search, therefore I exist...
Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message
bigbongo







PostPosted: Fri May 30, 2008 9:42 am Reply with quote

kguske wrote:
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

Anyway, if it doesn't matter it's fine by me Smile

Tnx
 
kguske







PostPosted: Fri May 30, 2008 9:47 am Reply with quote

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.
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel(tm) v2.5.x

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©