Welcome to WebmasterWorld Guest from 3.92.92.168

Forum Moderators: Ocean10000 & phranque

Message Too Old, No Replies

PHP and URLS

     
11:28 pm on Jan 21, 2008 (gmt 0)

Junior Member

10+ Year Member

joined:Aug 18, 2004
posts:59
votes: 0


Quick question, would love an answer if someone could help!

(a)Got one server that parses 1.php/123/abc/456/def and loads 1.php with parameters 123=abc 456=def.

(b)The other just gives a 404 as it cant find the directory structure.

Any idea what sets the server up like (a)?

Many many thanks

11:31 pm on Jan 21, 2008 (gmt 0)

Senior Member from ES 

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 11, 2003
posts:1381
votes: 0


If I am understanding you correctly, RewriteRules, either in the httpd.conf or in an .htaccess file.

Definitely have a stroll thru the apache forum:
[webmasterworld.com...]

11:33 am on Jan 22, 2008 (gmt 0)

Junior Member

10+ Year Member

joined:July 2, 2003
posts:112
votes: 0


if you could provide the rewrite condition syntax in your .htaccess file, that would help to guide you further
12:10 am on Jan 23, 2008 (gmt 0)

Junior Member

10+ Year Member

joined:Aug 18, 2004
posts:59
votes: 0


Thanks for the answers, I dont actually have any rewrite rules in any of the http.conf files at all and theres no .htaccess files being used at all in either server.

Is there a global htaccess file or something like?

Thanks

12:27 am on Jan 23, 2008 (gmt 0)

Senior Member

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 31, 2002
posts:25430
votes: 0


What version of Apache is the working server running?
What version is the new server running?

Jim

[edited by: jdMorgan at 12:35 am (utc) on Jan. 23, 2008]

11:43 am on Jan 23, 2008 (gmt 0)

Junior Member

10+ Year Member

joined:Aug 18, 2004
posts:59
votes: 0


Working -

Server running debian:
Server version: Apache/2.0.54
Server built: Aug 16 2007 18:44:42

Server running redhat:
Server version: Apache/2.0.46
Server built: Nov 12 2004 15:40:09

Desperately trying to find the solution to this as I need to move 50 sites and this is a major problem as I need this functionality :/

Thanks again.

2:03 pm on Jan 23, 2008 (gmt 0)

Senior Member

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 31, 2002
posts:25430
votes: 0


Since these are Apache 2.x servers, look for differences in the settings for "AcceptPathInfo", in addition to those for "Allow Override", "Options" (especially MultiViews), and --as focused-on above-- any mod_rewrite code in httpd.conf, conf.d, and .htaccess.

Jim

10:13 am on Jan 24, 2008 (gmt 0)

Junior Member

10+ Year Member

joined:Aug 18, 2004
posts:59
votes: 0


Jim,

Your a star!

Looks like it was default off in one server and default on in the other, no mention of the configuration in any of the conf files.

Added it and all works now.

I owe you a beer :)

Thanks

Phil.