In message <[EMAIL PROTECTED]>, James Keeline
<[EMAIL PROTECTED]> writes
>--- On Fri, 10/17/08, Pete <[EMAIL PROTECTED]> wrote:
>> But is there a way to do this, just using /title as the url?
>> 
>> -- 
>> Pete Clark
>
>
>One way to approach this would be to have an ErrorDocument 404 statement in 
>your 
>.htaccess which points to a PHP script.  This will catch any URLs which don't 
>exist on your system.  The script can look at the requested URI 
>($_SERVER['REQUEST_URI']) and see if it matches (or is similar to) a page you 
>have and want to display.  If it is, the script can return that content.  If 
>not, display a helpful error message.
>
>James

Hi, James,

Good input, as always!

I had considered this.  I already use these 404 redirects.  For example,
if you are looking for property number 348 on one of my property
websites, the URL 
http://fourwood.com/348
is expanded by the 404 into
http://www.fourwood.com/foursale/showdetail.php?pr=348&S=200
The first is very easy for people to remember and email, works fine.

The problem is, in the case that I am asking about, I don't want the URL
changing.  Mod Rewrite seems to be the answer, if I can find something
that mod rewrite will use to recognise that it is a request for an
Article 

I use this mod rewrite to rewrite 
http://hotcosta.com/Marbella.info
into 
http://www.hotcosta.com/loc.php?T=Marbella
so that the URL remains the same.

Currently I am thinking of making the URL contain a "SEO useful" folder
name,
mydomain.com/greencheese/reallytastycheese
and get mod rewrite to recognise the URL via the folder name, but I was
really looking for a way to get to
mydomain.com/reallytastycheese 

...but perhaps the SEO useful folder would be better...


-- 
Pete Clark

Advertise your events - local and free
http://hotcosta.com/events.php

Reply via email to