|
Posted by Janwillem Borleffs on 09/28/09 11:41
Laeronai wrote:
> If I used your example, Janwillem, would I include "redirect.php" on
> every page? I'm kinda new to PHP, not really sure how to do this kinda
> fancy stuff. But I can figure it out.
>
The redirect.php page should be part of the ErrorDocument directive shown in
my previous post. In short, when the page doesn't exist, send the request to
redirect.php (ErrorDocument 404 redirect.php)
> What does the "#^" mean, and the "(\d+)" mean? I'm a bit confused.
>
This is part of the regular expression synatx. Never heard of it? Start
reading at: http://www.php.net/manual/nl/pcre.pattern.syntax.php
> If I were to use mod_rewrite, and I have absolutely no experience in
> Apache, how would I use it?
>
Read about it. It sounds like pretty URL's will be the goal and you will
have to do some learning to reach it. Start to gain some basic knowledge of
regular expressions as you will also need them when applying the mod_rewrite
directives.
JW
Navigation:
[Reply to this message]
|