Re: [PHP] Ensuring all links go to index.php

2006-10-23 Thread Richard Lynch
The way you do or don't tear apart the original URL to get user and login, as well as the URL you send out will affect this. If your URL starts with "/" then it is an "absolute" URL, and the browser won't put the current "directory" (from its perspective) in front of it. It's also possible you ju

Re: [PHP] Ensuring all links go to index.php [SOLVED]

2006-10-23 Thread Dave M G
Edward, Roman, Jochem, Lowell, Kreme, Thank you for your explanations. Based on what was said here, I understand that the issue was setting up my local computer's Apache server to treat my directory hierarchies as they would behave on my hosting service. With the help of my local Linux user'

Re: [PHP] Ensuring all links go to index.php

2006-10-20 Thread Google Kreme
On 20 Oct 2006, at 02:00 , Dave M G wrote: So... my question is, why is the /user portion of my URL being retained as a directory? You need RewriteEngine On and RewriteBase and RewriteCond and RewriteRule, it sounds like. Not really a php issue per se. -- I wrote this song two hours befor

Re: [PHP] Ensuring all links go to index.php

2006-10-20 Thread Lowell Allen
On Oct 20, 2006, at 4:00 AM, Dave M G wrote: PHP List, This problem is a little hard to describe. Please forgive me in advance if it's not clear. I have set up my .htaccess file to work with my PHP script to create "friendly URLs". [snip] I thought it had something to do with setting h

Re: [PHP] Ensuring all links go to index.php

2006-10-20 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2006-10-20 17:00:05 +0900: > header("Location: /"); > header("/local/server/www/directory/"); Do you know that both headers are invalid? -- How many Vietnam vets does it take to screw in a light bulb? You don't know, man. You don't KNOW. Cause you weren't THERE.

FW: [PHP] Ensuring all links go to index.php

2006-10-20 Thread Edward Kay
> PHP List, > > This problem is a little hard to describe. Please forgive me in advance > if it's not clear. > > I have set up my .htaccess file to work with my PHP script to create > "friendly URLs". > > For example, the URL mysite.com/user/login will take the user to a page > where a user l

[PHP] Ensuring all links go to index.php

2006-10-20 Thread Dave M G
PHP List, This problem is a little hard to describe. Please forgive me in advance if it's not clear. I have set up my .htaccess file to work with my PHP script to create "friendly URLs". For example, the URL mysite.com/user/login will take the user to a page where a user logs in. It does