Apache Server configuration support - Re: .htaccess config

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > November 2006 > Re: .htaccess config





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: .htaccess config
shimmyshack

2006-11-20, 7:23 pm


> I really would like to have the possibility of this trick working locally.


if the config files are the same, and AllowOveride is set to allow
..htaccess files then you can create and use them on your windows
machine. The trick is to use notepad to create the file, then when you
come to save it, choose "save as type: All Files" and then type
..htaccess as the filename. Then the file will indeed be called
..htaccess without any trouble.

[vbcol=seagreen]
> Can You explain in 2 words what does those lines mean:

if the file requested does not exist
OR (this is apache default)
if the directory requested doesnt exist
THEN
rewrite everything ( . ) to index.php in the root of the site
/index.php
but make sure its the [L]ast thing that is done (ie dont then follow
any other rules that might be around) and dont do it for subrequests
[No Subrequests] which is when apache is thinking internally about a
file it has been asked to redirect to which itself might not exist, but
might exist if things are allowed to coninue - it means SPEED!

hope that helps

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com