Forum Moderators: phranque

Message Too Old, No Replies

PHP and URLS

         

Fugazi

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

10+ Year Member



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

mipapage

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

WebmasterWorld Senior Member 10+ Year Member



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...]

kunwarbs

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

10+ Year Member



if you could provide the rewrite condition syntax in your .htaccess file, that would help to guide you further

Fugazi

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

10+ Year Member



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

jdMorgan

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

WebmasterWorld Senior Member 10+ Year Member



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]

Fugazi

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

10+ Year Member



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.

jdMorgan

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

WebmasterWorld Senior Member 10+ Year Member



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

Fugazi

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

10+ Year Member



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.