You are here: Re: Redirect « All PHP « IT news, forums, messages
Re: Redirect

Posted by petersprc on 12/09/06 04:05

Hi,

You can do it with mod_rewrite as shown here:

http://www.webmasterworld.com/apache/3121118.htm

You could do it in PHP also with an ErrorDocument that handled 404s as
shown here:

http://www.onlamp.com/pub/a/onlamp/2003/02/13/davidsklar.html

Peppermint wrote:
> I've got a catalog of static pages in HTML and have a site hosted on a
> shared Red Hat server running Apache, php 4.4.4
>
> It the site there are a few hundred pages of a catalog; I'd like to be
> able to redirect users to a particular page by URL
> For example, if they were to go to http://mysite.com/catalog/aaa they
> should be redirected to http://mysite.com/catalog/AAA.html
>
> I can get to the .htaccess file but can't figure out how to do this
> using just this, as the files are case sensitive and always in the
> format [A-Z0-9][A-Z0-9][A-Z0-9].html, ie. X12.html. It's always
> uppercase. So far I haven't been able to figure this out using just
> .htaccess because of the case sensitive nature of the files. I hoped
> that there might be a solution in PHP but have no idea what to look for.

 

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

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