Find programmers and grapic design experts at ScriptLance.com
<? DEW-CODE.COM  
Dew-Code
Welcome, Guest
Please Login or Register.    Lost Password?
Error 404 .htaccess reminder (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Error 404 .htaccess reminder
#533
fattymattybrewing (User)
Support Your Local Brewer
Expert Boarder
Posts: 105
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Fatty Matty Brewing Location: Southwestern Wisconsin Birthdate: 1974-11-05
Error 404 .htaccess reminder 2 Months ago Karma: 3  
To all you newbies or users who may be thinking about moving your Dew-NewPHPLinks script files, I just wanted to give you all an important reminder about the essential .htaccess file.

The below can be found in the FAQ section of this website.

If you are getting an Error message when trying to display your "directory" file (which as you may or may not know, the directory file is the guts to this Dew-NewPHPLinks script).

Some web server or hosts or whatever do not allow you to simply run a file without an extention (your host may not allow you to run a file [like "directory"] without a *.php or without a *.html or *htm).

Because of this you need to tell your webserver to use "directory" as a PHP file...


Here is an example...my host sucks! I asked them to transfer all my website files for fattymattybrewing.com to a new webserver. I have had problems with my host's webserver being to overloaded with traffic or some crap. Anyway, I submitted a support ticket with my host and requested a transfer to a new webserver (one that was not slow from to much traffic or whatever there excuse is this week). They moved all my website files which included Wordpress, Coppermine Photo Gallery, Dew-NewPHPLinks, PHP Dictionary, Brewblogger, etc all which use PHP and MySQL. After the transfer, all the scripts moved worked except Dew-NewPHPLinks...

Low and behold I had to reference the the FAQ section of this website and add some code to my .htaccess file as I received a 400 error when trying to load the "directory" file on my website through a browser...my Appache/Linux server runs PHP5 - THANKS DEWED- and this was added to the .htaccess file to make directory run correctly:

Code:

#the below lines were added to make directory work per http://www.dew-code.com/content/view/14/25/ #added on 091708 <Files directory> #ForceType application/x-httpd-php #SetHandler application/x-httpd-php SetHandler application/x-httpd-php5 #ForceType x-httpd-php </Files> AddHandler application/x-httpd-php .htm .html
The above file has some notes in the first 2 lines above the <files directory> bracket. notice all but the php5 lines are commented out and the addhandler line is not commented out too.
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/09/17 09:48 By fattymattybrewing.
 
Lifes Too Short To Drink Crappy Beers
fattymattybrewing.com
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Newsflash

Sign up for PayPal and start accepting credit card payments instantly.
Copyright Dew-Code 2008