|
Posted by Peppermint on 12/18/06 18:53
petersprc wrote:
> 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.
>
Thanks, I'm not a webmasterworld.com member and that PHP ErrorDocument
solution looks like a good enough place for me to begin learning PHP.
Thanks again,
P
[Back to original message]
|