Closed Thread Icon

Topic awaiting preservation: .htaccess woes (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=13038" title="Pages that link to Topic awaiting preservation: .htaccess woes (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: .htaccess woes <span class="small">(Page 1 of 1)</span>\

 
Skaarjj
Maniac (V) Mad Scientist

From: :morF
Insane since: May 2000

posted posted 01-19-2004 04:19

Thanks to Emps I've got a nice little .htaccess file using mod_rewrite that will rewrite anything after the / in the directory it's in and send that as a variable to a PHP script so that my script can pull up the appropriate page from my CMS. Nice, search-engine friendly, user-friendly URLS, right?

Wrong.

After going right through Apache's manual about .htaccess and how to confugre it in various ways...I have yet to find out exactly how I can get my .htaccess file to work on my local testing server (I can't afford hosting space or a domain name, so local testing is the only option I have, unless someone knows a free host who provides both PHP and MySQL?). I have tried altering the httpd.conf file in numerous ways, including changing it so that <Directory /> contains AllowOverride All, altering the .htaccess filename lookup to have it look for ht.acc files instead (and I have altered my .htaccess filename to reflect this change), I have done everything short of stripping Apache down to the source code level and rewriting it there.

I'm running Apache 2, PHP 4.3 and MySQL godknowswhat on Windows, all bundled up in the PHPDev5 package.

Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

posted posted 01-19-2004 05:47

And I did point him directly to the FAQ on this:

:FAQ: Can I use a .htaccess file with a Windows server?

which didn't seem to help fix the problem either

___________________
Emps

The Emperor dot org

Piper
Paranoid (IV) Inmate

From: California
Insane since: Jun 2000

posted posted 01-19-2004 15:51

Hey Skaarjj,

It sounds like you've already done this but it might be worth going back over just to cover your bases. First, make sure default <Directory> is set up:

code:
<Directory />
Options FollowSymLinks
AllowOverride [b]All[/b]
</Directory>



Then make sure you're not overriding that directive somewhere else. That's usually the problem. Check through the <IfModule mod_alias.c> block.

Make sure you have the correct AccessFileName set:

code:
AccessFileName .htaccess ht.acc



If that doesn't work, can you post your httpd.conf?

~Charlie

Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 01-19-2004 16:50

and make sure that mod_rewrite isn't commentend out ;-).

And you've been over to the phpdev forums, rigth? Chances are they already ran into that...

eee
Obsessive-Compulsive (I) Inmate

From: daqing
Insane since: Jan 2004

posted posted 01-26-2004 20:00

kkkkkkkkkkkkkkkkkkkkgggggggggggggggggggggggggggggggg

rrryuhnr

Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

posted posted 01-26-2004 20:10

Oh please - just don't bother. You are wasting your time and mine.

___________________
Emps

The Emperor dot org

« BackwardsOnwards »

Show Forum Drop Down Menu