leading slash

leading slash

am 27.07.2007 20:54:48 von Paul Furman

I'm having trouble that my home localhost apache server handles internal
paths differently than the live shared server. It's a bit hard to
explain but has to do with a leading slash before paths that follow the
root.

..htaccess works at home:
RewriteRule ^Gallery/Photo-Update(/.+)?/pg([0-9]+)pc([0-9]+)$
1/index.php?SC=go.php&DIR=0_gallery/0-Photo-Update$1&PG=$2&P IC=$3 [NC,QSA,L]
RewriteRule ^Gallery/Photo-Update(/.+)?/pg([0-9]+)$
1/index.php?SC=go.php&DIR=0_gallery/0-Photo-Update$1&PG=$2 [NC,QSA,L]

added slash to work on shared server:
RewriteRule ^Gallery/Photo-Update(/.+)?/pg([0-9]+)pc([0-9]+)$
/1/index.php?SC=go.php&DIR=0_gallery/0-Photo-Update$1&PG=$2& PIC=$3
[NC,QSA,L]
RewriteRule ^Gallery/Photo-Update(/.+)?/pg([0-9]+)$
/1/index.php?SC=go.php&DIR=0_gallery/0-Photo-Update$1&PG=$2 [NC,QSA,L]

Of course this messes up lots of my php coding. I've got it up with the
slash but there's still some bugs like:

/home/u1/edgehill/html/1//California...etc...

--
Paul Furman Photography
http://edgehill.net/1

Re: leading slash

am 27.07.2007 21:18:38 von Paul Furman

Paul Furman wrote:

> I'm having trouble that my home localhost apache server handles internal
> paths differently than the live shared server. It's a bit hard to
> explain but has to do with a leading slash before paths that follow the
> root.
>
> .htaccess works at home:
> RewriteRule ^Gallery/Photo-Update(/.+)?/pg([0-9]+)pc([0-9]+)$
> 1/index.php?SC=go.php&DIR=0_gallery/0-Photo-Update$1&PG=$2&P IC=$3
> [NC,QSA,L]
> RewriteRule ^Gallery/Photo-Update(/.+)?/pg([0-9]+)$
> 1/index.php?SC=go.php&DIR=0_gallery/0-Photo-Update$1&PG=$2 [NC,QSA,L]
>
> added slash to work on shared server:
> RewriteRule ^Gallery/Photo-Update(/.+)?/pg([0-9]+)pc([0-9]+)$
> /1/index.php?SC=go.php&DIR=0_gallery/0-Photo-Update$1&PG=$2& PIC=$3
> [NC,QSA,L]
> RewriteRule ^Gallery/Photo-Update(/.+)?/pg([0-9]+)$
> /1/index.php?SC=go.php&DIR=0_gallery/0-Photo-Update$1&PG=$2 [NC,QSA,L]


PS the following is not relevant to this issue, I think it's just the
above needed but it is odd. Probably the server is nix & I'm on winxp...
there are sort order issues that differ as well.

> Of course this messes up lots of my php coding. I've got it up with the
> slash but there's still some bugs like:
>
> /home/u1/edgehill/html/1//California...etc...
>


--
Paul Furman Photography
http://www.edgehill.net/1
Bay Natives Nursery
http://www.baynatives.com