leading slash
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > leading slash




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    leading slash  
Paul Furman


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-28-07 12:22 AM

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&PIC=$3 [NC,QS
A,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





[ Post a follow-up to this message ]



    Re: leading slash  
Paul Furman


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-28-07 12:22 AM

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





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:01 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register