You are here: Re: Pretty URLs « PHP Programming Language « IT news, forums, messages
Re: Pretty URLs

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация