how do I get .osp to work
Moderator: General Moderators
how do I get .osp to work
I finally got thing working php,mysql and apache. unzipped my website which was designed by a website design company and now I am haveing a problem.
The index.php runs this:
<?php header("Location: http://fletcher.co.uk/site/site.php/hom ... newsession"); ?>
i added this to my http.conf
AddType application/x-httpd-php .php .osp
and still no joy.
I had this working under an earlier version.
The index.php runs this:
<?php header("Location: http://fletcher.co.uk/site/site.php/hom ... newsession"); ?>
i added this to my http.conf
AddType application/x-httpd-php .php .osp
and still no joy.
I had this working under an earlier version.
Place a space between the the word "Location" and the : as below:
Also, did you restart Apache after adding the new file extension ?
Regards,
Code: Select all
<?php header("Location : http://fletcher.co.uk/site/site.php/hom ... newsession"); ?>Regards,
I asked the developer the same question and this was the reply
http://www.fletcher.co.uk/site/site.php
is the script
/home/index.osp?newsession
is the query string - which is a bit unusual, so i can see why
you're puzzled...
If this mean anything to you, I have difficulty understanding the query and why they did it like this.
What I do know is that the php code is being read.
http://www.fletcher.co.uk/site/site.php
is the script
/home/index.osp?newsession
is the query string - which is a bit unusual, so i can see why
you're puzzled...
If this mean anything to you, I have difficulty understanding the query and why they did it like this.
What I do know is that the php code is being read.
There should be no space at all....cactus wrote:Place a space between the the word "Location" and the : as below:
Code: Select all
<?php header("Location : http://fletcher.co.uk/site/site.php/hom ... newsession"); ?>
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html wrote:14.30 Location
The Location response-header field is used to redirect the recipient to a location other than the Request-URI for completion of the request or identification of a new resource. For 201 (Created) responses, the Location is that of the new resource which was created by the request. For 3xx responses, the location SHOULD indicate the server's preferred URI for automatic redirection to the resource. The field value consists of a single absolute URI.
Location = "Location" ":" absoluteURI
An example is:
Location: http://www.w3.org/pub/WWW/People.html
Note: The Content-Location header field (section 14.14) differs
from Location in that the Content-Location identifies the original
location of the entity enclosed in the request. It is therefore
possible for a response to contain header fields for both Location
and Content-Location. Also see section 13.10 for cache
requirements of some methods.
That's also a good question, because even http://fletcher.co.uk/ isn't working for me.volka wrote:you're sure the path is correct?
I was able to access that yesterday but now it throws a 404. Have you changed/deleted any files from this domain ?phice wrote:That's also a good question, because even http://fletcher.co.uk/ isn't working for me.volka wrote:you're sure the path is correct?
Regards,
if anything.php is a directory it's handled as usual, no problem here.
It might be a bit confusing but even if anything.php is a script it might be working. Place a script called anything.phpin your document root and call and request it as http://<your-server>/anything.php/what/ever/you/like
(only tested with apache/php-module)
It might be a bit confusing but even if anything.php is a script it might be working. Place a script called anything.php
Code: Select all
<?php
echo $_SERVER['REQUEST_URI'];
?>(only tested with apache/php-module)
