Webmasters: .htaccess help, anyone?

Started by PhoenixRisen, February 24, 2009, 02:47:42 AM

0 Members and 1 Guest are viewing this topic.

PhoenixRisen

Hi all,

I got our new website up (http://sq714.cawg.cap.gov), and would like to create a members only section.  The CAWG webmaster told me that .htaccess is an easy way to go about this.  One of my Cadets is familiar with these files (and was able to create it for me, because of his knowledge of Unix/Linux).

I uploaded them in a test folder with a test "secure" homepage, and found out it wasn't working.

When I asked the CAWG webmaster how to go about this (because it requires the server root path), he simply said to use "../" as the beginning of the path (for cawg.cap.gov).  So, in my case, it would look something like this:

../secure/.htaccess

My fellow Cadet who created the file thought that was a bit weird when I told him this was how it's aparrently supposed to be done.

Anyone have any knowledge on this?  Maybe anyone from CAWG specifically?

Thanks!

Lancer

Alex,

Spend some time reading over this page, it'll help http://www.javascriptkit.com/howto/htaccess3.shtml

Other than that, the site looks good. If you're up for some page design/tweak advice, PM me.

Dutchboy

Site looks Awsome. But here is a little FYI on some info you have that is a little incorrect on the site. OPSEC is NOT only available online. It can be done offline. Keep up the good work and all you do.

PhoenixRisen

Sweet!  Thank you, gentlemen.

Lt Curtis, PM inbound.

Lt Loss, I understand the different methods there are to complete the OPSEC course - though, at the moment, my squadron is in it's beginning stages (we were chartered on 29OCT08) and don't have the resources / qualified people to administer the tests as such.  Online would be the best for my members at the moment, and I'd like to keep it simple.  Thank you for the clarification, though!

PhoenixRisen

Quote from: Lancer on February 24, 2009, 03:05:55 AM
Spend some time reading over this page, it'll help http://www.javascriptkit.com/howto/htaccess3.shtml

Sir,

I've read over that site (and countless others) numerous times.  I've got everything in place as it should be (the encrypted passwords were even created with a unix machine, versus those websites you can go to that supposedly do it for you), but it's still not working.

I'm utterly clueless.   ???

JC004

Maybe you need to do the path differently.  Upload a file called documentroot.php with the following code, then point your browser there.

Quote<?php
if (isset($_SERVER['DOCUMENT_ROOT'])) {
echo 'Supported. The server root is '.$_SERVER['DOCUMENT_ROOT'];
}
else {
echo "\$_SERVER['DOCUMENT_ROOT'] is not supported";
}
?>

If you want, e-mail me, and I'll send you a mean .htaccess file that I use.  I don't use it for password protection, but I use it for rewrites, blocking bots, custom error messages, and some other fun.

PhoenixRisen

Quote from: JC004 on February 24, 2009, 08:27:43 AM
Maybe you need to do the path differently.  Upload a file called documentroot.php with the following code, then point your browser there.

Quote<?php
if (isset($_SERVER['DOCUMENT_ROOT'])) {
echo 'Supported. The server root is '.$_SERVER['DOCUMENT_ROOT'];
}
else {
echo "\$_SERVER['DOCUMENT_ROOT'] is not supported";
}
?>

If you want, e-mail me, and I'll send you a mean .htaccess file that I use.  I don't use it for password protection, but I use it for rewrites, blocking bots, custom error messages, and some other fun.

Thank you, sir.  I'll have to try that later today.

BTW - Has anyone been experiencing difficulties with the new website?  My commander reported to me today that an officer from another squadron mentioned that the site overlaps, and cannot be read.  (Every one I've talked to, including myself, have had no difficulties...)

JC004

Quote from: PhoenixCadet on February 24, 2009, 05:58:09 PM
...
BTW - Has anyone been experiencing difficulties with the new website?  My commander reported to me today that an officer from another squadron mentioned that the site overlaps, and cannot be read.  (Every one I've talked to, including myself, have had no difficulties...)

See if you can find out the browser.  That's the best place to start.  Also, try some screenshot sites:
http://browsershots.org/
http://ipinfo.info/netrenderer/index.php