Jump to content

Annoying Redirect Problem


imperium2335

Recommended Posts

Hi, I have the following in my HTACCESS file:

 

Options +FollowSymlinks

 

RewriteEngine On

 

RewriteRule wedding-cakes/(.*)\.html$ cakes.php?target=$1

RewriteRule chocolate-cups-towers/(.*)\.html$ cakes.php?target=$1

RewriteRule corporate-cakes/(.*)\.html$ cakes.php?target=$1

RewriteRule adult-birthday-cakes/(.*)\.html$ cakes.php?target=$1

RewriteRule childrens-birthday-cakes/(.*)\.html$ cakes.php?target=$1

RewriteRule saucy-cakes/(.*)\.html$ cakes.php?target=$1

RewriteRule christmas-cakes/(.*)\.html$ cakes.php?target=$1

RewriteRule christening-cakes/(.*)\.html$ cakes.php?target=$1

 

Now, if I go to a link such as:

 

saucy-cakes/bum-shaped-cake.html

 

I get a 404 that says:

 

The requested URL /saucy-cakes.jpg/bum-shaped-cake.html was not found on this server.

 

Where is this .jpg coming from???

Link to comment
Share on other sites

Hi Dan,

 

I have another htaccess file in the root of the site.

 

The full url if ur interested in looking is:

 

http://www.sweetart.co.uk/2012/cake-gallery.php

 

From there u go into a gallery and then click on images to enlarge them.

 

Strangely enough, putting in:

 

2012/saucy-cakes/saucy-cakes/bum-shaped-cake.html

 

Works, so I am now totally confused!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.