Hello all.
Win2k server, PHP 4.2.3, PHPNuke 6.0, IIS.
This code works great for redirecting the user:
$redirect = getenv("HTTP_HOST");
if ($redirect=="something.mydomain.com"){
header("Location:http://www.mydomain.com/modules.php?name=something");
}
However, if I try this:
if ($redirect==www.mydomain.com/something){
header("Location:http://www.mydomain.com/modules.php?name=something");
}
it generates 1) a 404 error, and 2) something about a TRANSLATE verb in my
URLScan log.
Does anyone know which IIS "verb" handles this ? I cannot find anything on
TRANSLATE,
and PHP is configured in IIS to accept/handle ALL verbs.
Many thanks. 2 3662
On 30-Jul-2003, "fartsniff" <fa**@sniff.com> wrote: Win2k server, PHP 4.2.3, PHPNuke 6.0, IIS.
This code works great for redirecting the user: $redirect = getenv("HTTP_HOST");
if ($redirect=="something.mydomain.com"){ header("Location:http://www.mydomain.com/modules.php?name=something"); }
However, if I try this: if ($redirect==www.mydomain.com/something){ header("Location:http://www.mydomain.com/modules.php?name=something"); }
it generates 1) a 404 error, and 2) something about a TRANSLATE verb in my URLScan log. Does anyone know which IIS "verb" handles this ? I cannot find anything on TRANSLATE, and PHP is configured in IIS to accept/handle ALL verbs.
In the second example you forgot the quotes around www.mydomain.com/something, so you got a php syntax error which probably
resulted in no output hence the 404 error.
--
Tom Thackrey www.creative-light.com
thanks - that was my fault in a hasty copy/paste.
in there "real" code they quotes are there, and i still
get the error.
i am still looking thru my logs for the exact error.
"Tom Thackrey" <to***@creative-light.com> wrote in message
news:s0*******************@newssvr21.news.prodigy. com... On 30-Jul-2003, "fartsniff" <fa**@sniff.com> wrote:
Win2k server, PHP 4.2.3, PHPNuke 6.0, IIS.
This code works great for redirecting the user: $redirect = getenv("HTTP_HOST");
if ($redirect=="something.mydomain.com"){ header("Location:http://www.mydomain.com/modules.php?name=something"); }
However, if I try this: if ($redirect==www.mydomain.com/something){ header("Location:http://www.mydomain.com/modules.php?name=something"); }
it generates 1) a 404 error, and 2) something about a TRANSLATE verb in
my URLScan log. Does anyone know which IIS "verb" handles this ? I cannot find anything
on TRANSLATE, and PHP is configured in IIS to accept/handle ALL verbs.
In the second example you forgot the quotes around www.mydomain.com/something, so you got a php syntax error which probably resulted in no output hence the 404 error.
-- Tom Thackrey www.creative-light.com This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Ming |
last post by:
When I use fopen on the URL:
fopen("http://home.pchome.com.tw/world/qoo4ko/110.jpg";, "r")
I would get the following error message:
-----------Error Message------------
Warning: fopen():...
|
by: DaiIchi |
last post by:
I'm using Tomcat in standalone mode. When a URL without a filename is
entered into the browser (ie. "http://myhost.mydomain.com"), and the
default path does NOT have an index.html, but rather an...
|
by: Michael Shestero |
last post by:
Hello.
General description of my knotty problem:
I have a code (a function f) on standart C++ that perform some smart action.
This code works as console application getting user input from...
|
by: Gerard M Foley |
last post by:
Can one write a webpage which is not displayed but which simply redirects
the user to another page without any action by the user?
Sorry if this is simple, but I am sometimes simple myself.
...
|
by: Materialised |
last post by:
Ok, I need some info on how to print in colours to the xterm using c.
take a simple program
#include <stdio.h>
voice main(void)
{
printf("I want this in colour\n";
return 0;
}
|
by: John Drako |
last post by:
I have a database with a lot of links. Every so often I run a script to
verify if the URLs are still valid. I weed out the ones with the 404
response.
However, many responses are of the 303 kind...
|
by: Luciano A. Ferrer |
last post by:
Hi!
I was following the http://www.seomoz.org/articles/301-redirects.php
article, trying to do that with one of my test sites
I added this to the .htaccess file:
RewriteEngine On
RewriteCond...
|
by: Massimo Fabbri |
last post by:
Maybe it's a little OT, but I'll give it try anyway....
I was asked to maintain and further develop an already existing small
company's web site.
I know the golden rule of "eternal" URIs, but...
|
by: segis bata |
last post by:
Hello all,
I have a page (located at mywebsite/a.asp) that redirects to another page
(theirwebsite/b.asp) located in other server. This other page probably will
redirect to another link again...
|
by: stanleyxu |
last post by:
Hi All,
I am porting Perl script to Python script. Everything works fines until
calling os.system().
In my script, a number of DOS-commands will be executed.
for new_folder, old_folder in...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |