To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
PHPBuilder.com  
 

 

Go Back   PHPBuilder.com > Misc Help > Windows Help

Windows Help Help with the Windows operating system

Reply
 
Thread Tools Rate Thread Display Modes
Old 07-25-2000, 03:35 PM   #1
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
Directory Aliases

Is there some Apache property that redirects all requests to a certain directory (or file under that directory) to a php script?

While I have this working on Solaris, with no explicit property set in httpd.conf or .htaccess or anything (as far as I can tell), it doesn't work on WinNT/Apache/PHP3.

What I want is for all references to

http://localhost/library/x/y/z.html

to goto my script in

/library.php


Thanks.

Steve Spencer
Anon is offline   Reply With Quote
Old 07-25-2000, 04:11 PM   #2
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: Directory Aliases

The Apache guys did include the Redirect command to tell your visitors where to look for the relocated document:

Redirect library/x/y/z.html /library.php

Put that anywhere in your httpd.conf, and you'll enable a redirect for that page. You could also use meta tags on the library/x/y/z.html page to automatically transport visitors to that new page.
Anon is offline   Reply With Quote
Old 07-25-2000, 06:52 PM   #3
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: Directory Aliases

I don't think redirects are what I'm looking for -- I just don't need it for one file.

Basically, every file with

/library/

in it goes to the library.php script,which then serves dynamic content, based on the path.

so

/library/x.html
/library/x/y.html
/library/x/y/z/abc.html
/library/whatever/i/want.html

all go thru the same library.php script.

I know this is possible with the solaris version of apache and it seems the default behavior. How do I get this working on windows???

I tried the suggestions from
http://www.phpbuilder.com/columns/tim20000526.php3

but they do not work on windows.



Anon is offline   Reply With Quote
Old 07-26-2000, 08:19 AM   #4
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: Directory Aliases

Take a look at Tim's article at:

http://www.phpbuilder.com/columns/tim20000526.php3

/Mike
Anon is offline   Reply With Quote
Old 07-26-2000, 01:22 PM   #5
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: Directory Aliases

Mike Hall wrote:
-------------------------------
Take a look at Tim's article at:

http://www.phpbuilder.com/columns/tim20000526.php3

/Mike


I did and it doesn't work for windows. Hence the question. Tim suggested to start trying various combinations of back slashes for the path instead of forward slashes. I'll try that next.

Anon is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 10:49 AM.






Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.