Re: [users@httpd] How to disable errors and redirect allways to default.php

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The environment variable "REQUEST_URI" will contain "/", "/page1", "/page2", "/page3", "/<randomword>" so you could use this variable (perhaps without the leading "/") in your default.php to select the contents of the page.

On 18/08/06, Michelle Konzack <linux4michelle@xxxxxxxxxx > wrote:
Hello,

I want  http://domain.tld/
        http://domain.tld/page1
        http://domain.tld/page2
        http://domain.tld/page3
         http://domain.tld/...
        http://domain.tld/<an_interesting_random_word>

but this pages and several 100.000' are handled by only ONE php script.

Exactly, if a user call the website e.g. "http://domain.tld/wtf" it is
automaticaly pointed to default.php (without renaming the link) and the
default.php is looking into a PostgreSQL looking for contents fiting
the virtual file name.

I know, this is possibel with apache, but HOW?

Note:   If the "file" is not found, default.php will handel the error.

Thanks
    Michelle Konzack


--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSM LinuxMichi
0033/6/61925193    67100 Strasbourg/France   IRC #Debian (irc.icq.com)


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




--
Steve Swift
http://www.swiftys.org.uk
[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux