Need some .htaccess help

SpaceshipSpaceship
SpaceshipSpaceship
SpaceshipSpaceship
Watch

ammo

VIP Member
Impact
13
I have the following script

Code:
AddHandler headered .htm
AddHandler headered .html

Action headered /header/header.php

And the .php file puts it on the page, simple. But im having one problem, I want the .php file to be in one location on my account so i can change it and the rest follow suit but when i change that link to http://www.ariel-networkz.com/header/header.php it doesnt work anymore, I get this message

The requested URL /header/header.php/index.html was not found on this server. Even though ive changed the link to goto a completely different domain

I dont understand whats wrong any link i put in it messes up, and i dont wnat it in ever account as it would take ages to update.

Can anyone help?
- Dan
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Well..

There is no index.html in header folder... and php isn't allowed to include files from another domain like include "http://namepros.com/showthread.php"; won't work.

iNod
 
0
•••
index shouldnt be in that folder, and there is no folder named header.php

the php file is here after looking at it i think ive found the problem.

Code:
<?php

$header = "header.html";
$footer = "footer.html";

$file = $_SERVER["PATH_TRANSLATED"];   <---this is the problem i think
readfile($header);
readfile($file);
readfile($footer);

?>

Ive marked were i think the problem is, is there anyway i can have it so htaccess uses this php file?

- Dan
 
0
•••
CatchedCatched

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com
Catchy
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back