|
|
|||||||||
|
|||||||||
|
|||||||||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
||||
|
||||
|
Apache .htaccess
I had originally designed my site on a windows box running Apache 1.3 and i had used .htaccess for one of the directories to ForceType certain files...
I've now attempted to move the site over to a linux box which is running Apache 2 (i believe)... i got the site to load, however it doesn't seem to be interpreting my htaccess file at all... keep in mind that all I did was copy the files [php and images] to the directory exactly as they were in windows, over to /var/www/html/mydir. Is there a step i've missed? Has anyone come across this before? Thanks please also realize, i'm an absolute newcomer in terms of linux...
__________________
Daryl's Homepage | My Blogroll | My Profile | Firefox supporter! DevArticles Forum Moderator "The net is a waste of time, and that's exactly what's right about it." -- William Gibson |
|
#2
|
||||
|
||||
|
by the way, the .htaccess file:
Code:
<Files album>
ForceType application/x-httpd-php
</Files>
|
|
#3
|
|||
|
|||
|
In your httpd.conf you should set the
AllowOverride setting to All. This setting is a little broad, but you can tune it as needed after getting it to work.
__________________
__________________________________________________ _ Wil Moore III, MCP | Integrations Specialist | Senior Consultant Are You Listed...? | DigitallySmooth Inc. |
|
#4
|
||||
|
||||
|
The override for ForceType is the same as the override for AddType..
Instead of enabling all, do this AllowOverride FileInfo That will let you use those two directives along with a few more |
|
#5
|
||||
|
||||
|
still doesn't seem to be loading...
i've tried everything i can think of... mind you, my apache skills aren't as good as i thought they were... browsing through the httpd2.conf file I noticed there was absolutely no <Directory> levels, but instead a DirectoryRoot I figured i'd disable use of .htaccess files by entering: <Directory /var/www/html> AllowOverride None </Directory> I dont know if those changes did much... i also added: <Directory /var/www/html/test> AllowOverride All </Directory> I tried FileInfo too, but it didn't do anything. reloading the httpd server works, however i still can't access the appropriate file... my goal here is to do the "pretty url" thing using ForceType (read an article here on devarticles about it)... again, it worked in Windows, but when transfered to linux it doesn't work. the article: http://www.devarticles.com/art/1/143 Last edited by MadCowDzz : June 2nd, 2003 at 04:16 PM. |
|
#6
|
||||
|
||||
|
i'm curious as to what needs to be in the httpd conf file...
I've tried this: <Dicrectory /var/www/html/dir> AllowOverride All </Directory> then in dir i have an .htaccess file with this: <Files name> ForceType application/x-httpd-php </Files> keep in mind its in linux, if that makes a difference... |
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Web Server Configuration > Apache .htaccess |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|