Forum Moderators: phranque

Message Too Old, No Replies

.htaccess keeps being unformated & indexing 403ed

         

JAB Creations

10:05 pm on Dec 21, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I had some troubles with Apache earlier and decided to download the lastest version of Xampp. Well unfortunitly they decided to mess with some of previously fine options such as autoindexing and now I'm also seeing my .htaccess file being reformated everytime I exit and open it back up!

So ...
1.) How do I configure Apache to STOP reformating my .htaccess file? I like my whitespace formating.

2.) How do I re-enable Apache to index my indexless directories?

I've just been using the same fine .htaccess options that worked fine before so that is why I'm sure that this is an issue with the main config file.

JAB Creations

10:33 pm on Dec 21, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



* I have discovered that since I was setting my htdocs folder to a folder on my desktop instead of the default Apache folder that when I reset it I would see the index. So that is part of whats causing the error...beyond that I do not know.

I have reverted to the original XAMPP that I have ran in the past. So I don't see it formating my .htaccess file anymore.

So now I'm stuck at figuring out how to have Apache index files when I set my htdocs....

A little insight in to what I'm doing...

# DocumentRoot "C:/MEDIA/INTERNET/Apache/xampp/htdocs"
DocumentRoot "C:/MEDIA/SYSTEM/USERS/Administrator/Desktop/xhtml"

John

JAB Creations

10:43 pm on Dec 21, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Ok, I figured it out! I [did a find and replace of] all...
C:/MEDIA/INTERNET/Apache/xampp/htdocs

with...
C:/MEDIA/SYSTEM/USERS/Administrator/Desktop/xhtml

It now indexes the directory just fine! :)

[edited by: jdMorgan at 2:18 am (utc) on Dec. 22, 2005]
[edit reason] Edited for clarity. [/edit]