Forums / General Questions / .htaccess redirect help for a coming soon URL

.htaccess redirect help for a coming soon URL

Started by limelites on 3 Jul 2011, 4:08 PM · Views: 1,340

Results 1 to 5 of 5
3 Jul 2011, 4:08 PM
#1
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

.htaccess redirect help for a coming soon URL

DOes anyone know the proper syntax to achieve this in my .htaccess file?

Here's the logic:

Custom Redirects

RewriteRule http://www.silkblooms.co.uk/wholesale/index.php?main_page=index&cPath=353
RewriteCond http://www.silkblooms.co.uk/index.php?main_page=coming_soon [R=301,L]

I've tried a few different syntax but some put the site into a loop and others do nothing. Can't seem to find the right one.

Anyone know hoe to make this redirect work?

3 Jul 2011, 9:59 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: .htaccess redirect help for a coming soon URL

Try this
I do not think you want a "Permanent redirect for this??

Redirect /wholesale/index.php?main_page=index&cPath=353 http://www.silkblooms.co.uk/index.php?main_page=coming_soon

Zen-Venom Get Bitten

4 Jul 2011, 6:49 AM
#3
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Re: .htaccess redirect help for a coming soon URL

Hi Cobra,

Doesn't work.

Permanent redirect? Absolutely.

A lot of our customers are missing the link to our "Coming Soon" gallery so I was hoping to use this as a 'fake category' that's visible at the top of the category tree and more likely to be seen.

I want the <a href=""> to take them to the gallery at http://www.silkblooms.co.uk/index.ph...ge=coming_soon but just can't seem to get the .htaccess to do that.

I guess what I'm asking is how to change the URL that's assigned to the category?

10 Jul 2011, 12:27 PM
#4
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Re: .htaccess redirect help for a coming soon URL

Still can't get this working, is it because I'm trying to redirect a PHP page to a PHP page?

17 Jul 2011, 1:32 AM
#5
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: .htaccess redirect help for a coming soon URL

I used this which is just a variation of what I posted for you

Redirect /demo/wholesale/index.php http://www.kobrawd.com/demo/index.php?main_page=page_2

So if you go to this address you will see it redirects to the page I told it to - remove dot & space
http: //www dot kobrawd dot com/demo/wholesale/index.php

I placed the file with the above statement in the /wholesale directory

Zen-Venom Get Bitten