PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
bigbongo
New Member
New Member


Joined: May 25, 2008
Posts: 13

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

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

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)

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: 4624

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

Not sure it matters, as long as it can find the staccess file.
View user's profile Send private message
bigbongo
New Member
New Member


Joined: May 25, 2008
Posts: 13

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

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
View user's profile Send private message
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 4624

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

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 user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum