Jump to content

What system for linking Navigation

Server side includes, snippets etc.

  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • This topic is locked

What system for linking Navigation Server side includes, snippets etc. Rate Topic: -----

#21 User is offline   jameson 

  • W.R. Corporal
  • Group: Members
  • Posts: 114
  • Joined: 08-July 08
  • Gender:Male
  • Location:Phoenix, AZ
  • Interests:These days I eat, sleep, and breathe web design with no time for much else. I sure dig some good techno, though.

Posted 23 September 2008 - 12:05 AM

View Postherkalees, on Apr 22 2008, 07:31 AM, said:

You can also use nothing but html files, everywhere, and tell the server to parse all .html files as if they were .php. This often happens when an older site, whose files are only .html, has built up quite a bit of PR and doesn't want to change URL paths and/or file names, but needs to be converted to PHP.

Read more here: http://www.google.co...rse+html+as+php (The second and third results look nice)

Thanks for that - I was just about to convert all the extensions on a fairly high-traffic and established site to php.. didn't even think about the onslaught of 404-page-induced client confusion I was about to unleash on myself!
0

#22 User is offline   marcamos 

  • W.R. General
  • Group: Administrators
  • Posts: 2,849
  • Joined: 04-April 06
  • Gender:Male
  • Location:Massachusetts - USA

Posted 23 September 2008 - 05:04 AM

You're quite welcome.
0

#23 User is offline   jameson 

  • W.R. Corporal
  • Group: Members
  • Posts: 114
  • Joined: 08-July 08
  • Gender:Male
  • Location:Phoenix, AZ
  • Interests:These days I eat, sleep, and breathe web design with no time for much else. I sure dig some good techno, though.

Posted 23 September 2008 - 11:54 AM

Ok, so I tried making that .htaccess method work, where you tell it to read all html files as if they were PHP, but it keeps giving me a popup box asking if I want to save or open the page. Anyone have any idea why that might be happening?
0

#24 User is offline   haku 

  • 日本語 Ninja
  • Group: Members
  • Posts: 652
  • Joined: 21-September 07
  • Gender:Male
  • Location:Yokohama, Japan

Posted 23 September 2008 - 11:59 AM

Is it .html files that are attempting to download to the user, or is it .php files?

Just to clarify, the code in the .htaccess file should look something like this:

AddType application/x-httpd-php .php .html


If you have more file extensions in the list, its ok, but you need .php and .html at the minimum.

I had this happen to me once (unintentional forced download of php scripts). Re-uploading the script worked that time, though I'm not sure why! Maybe you can try that.
<a href="http://www.jaypan.com" target="_blank">Jaypan</a>
<a href="http://www.dudes-japan.com" target="_blank">Dudes Japan</a>
0

#25 User is offline   jameson 

  • W.R. Corporal
  • Group: Members
  • Posts: 114
  • Joined: 08-July 08
  • Gender:Male
  • Location:Phoenix, AZ
  • Interests:These days I eat, sleep, and breathe web design with no time for much else. I sure dig some good techno, though.

Posted 23 September 2008 - 02:04 PM

That's what I used (plus any other combination I could find online) and everything either gave me that popup or wouldn't load the page at all. It must be trying to open the .html files because I don't even have any .php files on the site yet - I was hoping to get this working before I start adding in all the php includes.
0

#26 User is offline   haku 

  • 日本語 Ninja
  • Group: Members
  • Posts: 652
  • Joined: 21-September 07
  • Gender:Male
  • Location:Yokohama, Japan

Posted 24 September 2008 - 01:21 AM

I wish I could help you on that one, but I've never seen that behavior before!
<a href="http://www.jaypan.com" target="_blank">Jaypan</a>
<a href="http://www.dudes-japan.com" target="_blank">Dudes Japan</a>
0

#27 User is offline   jameson 

  • W.R. Corporal
  • Group: Members
  • Posts: 114
  • Joined: 08-July 08
  • Gender:Male
  • Location:Phoenix, AZ
  • Interests:These days I eat, sleep, and breathe web design with no time for much else. I sure dig some good techno, though.

Posted 24 September 2008 - 09:30 AM

I might have to just take the time and go through converting all their files and links to .php manually. At least I have a sweet 404 page set up for them already... :)
0

#28 User is offline   haku 

  • 日本語 Ninja
  • Group: Members
  • Posts: 652
  • Joined: 21-September 07
  • Gender:Male
  • Location:Yokohama, Japan

Posted 24 September 2008 - 10:48 AM

I'd contact your hosting company and see what they say. The files shouldn't download from that piece of code.
<a href="http://www.jaypan.com" target="_blank">Jaypan</a>
<a href="http://www.dudes-japan.com" target="_blank">Dudes Japan</a>
0

Share this topic:


  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users