Click here to get back home

.htaccess rules help

 HomeNewsGroups | Search | About
 alt.www.webmaster    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
.htaccess rules help cashinparadise 11-05-2007
Get Chitika Premium
Posted by cashinparadise on November 5, 2007, 4:40 pm
Please log in for more thread options
Hi, I'm trying to add a rule to my .htaccess file that will redirect a
request for one of a series of possible image names to a "master"
image.

Example:

http://www.domain.com/images/lemonslice_up_01.jpg

to

http://www.domain.com/images/lemonslice.jpg

where the '_up_01' will vary (i.e. _down_01, _up_02, etc)

I'm sure it's a two line entry in the .htaccess file but I can't quite
grasp the matching syntax they use :(

Please, anyone, save my sanity!

Cheers!
James


Posted by Jerry Stuckle on November 5, 2007, 5:16 pm
Please log in for more thread options
cashinparadise@gmail.com wrote:
> Hi, I'm trying to add a rule to my .htaccess file that will redirect a
> request for one of a series of possible image names to a "master"
> image.
>
> Example:
>
> http://www.domain.com/images/lemonslice_up_01.jpg
>
> to
>
> http://www.domain.com/images/lemonslice.jpg
>
> where the '_up_01' will vary (i.e. _down_01, _up_02, etc)
>
> I'm sure it's a two line entry in the .htaccess file but I can't quite
> grasp the matching syntax they use :(
>
> Please, anyone, save my sanity!
>
> Cheers!
> James
>
>

You could try alt.apache.configuration... All kinds of experts there!

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================


Posted by cashinparadise on November 5, 2007, 5:22 pm
Please log in for more thread options
Done! Thanks!

> You could try alt.apache.configuration... All kinds of experts there!
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstuck...@attglobal.net
> ==================



Posted by GreyWyvern on November 5, 2007, 5:25 pm
Please log in for more thread options
> cashinparadise@gmail.com wrote:
>> Hi, I'm trying to add a rule to my .htaccess file that will redirect a
>> request for one of a series of possible image names to a "master"
>> image.
>> Example:
>> http://www.example.com/images/lemonslice_up_01.jpg
>> to
>> http://www.example.com/images/lemonslice.jpg
>> where the '_up_01' will vary (i.e. _down_01, _up_02, etc)
>> I'm sure it's a two line entry in the .htaccess file but I can't quite
>> grasp the matching syntax they use :(
>> Please, anyone, save my sanity!
>> Cheers!
>> James

RedirectMatch 301
^/images/lemonslice(.+)\.jpg$ http://www.example.com/images/lemonslice.jpg

Grey

--
The technical axiom that nothing is impossible sinisterly implies the
pitfall corollary that nothing is ridiculous.
- http://www.greywyvern.com/orca#search - Orca Search: Full-featured
spider and site-search engine

Similar ThreadsPosted
htaccess rules. December 8, 2006, 11:09 am
A unique htaccess config for an htaccess guru! April 23, 2006, 5:37 pm
is there a FAQ available where i can see the group's rules November 17, 2006, 7:45 am
Google and Rewrite Rules November 21, 2005, 12:05 am
I don't accept that life needs no rules. None. August 17, 2005, 9:29 pm
How am I going to win against that guy, who believes there are no need for rules. Not a single one. August 17, 2005, 9:40 pm
Follow Design Rules? September 12, 2006, 12:24 pm
Re: Rules for Mornington Crescent July 11, 2008, 2:12 am
Exchange links rules December 6, 2007, 7:05 am
Re: Rules for Mornington Crescent July 11, 2008, 7:28 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap