[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.


Closed Thread
 
LinkBack Thread Tools
Old 12-16-2005, 12:39 PM   #1 (permalink)
NamePros Regular
 
Join Date: Feb 2004
Posts: 631
57.15 NP$ (Donate)

teclance is on a distinguished road


.htaccess redirection slow

Hi guys,

I am trying to set up a couple redirections using .htaccess and I have the following set up:

Redirect /signup.php https://www.domainishere.com/signup.php

Ignore the link part as I replaced my domain name with a false one.

Basically what I am trying to do is have anyone going to the unsecure page be automatically redirected to the secure page.

The problem I am running into is slowness. It takes a minimum of 2 minutes to redirect and I only have 1 set up.

Does any one have an idea of my problem?

thanks a bunch!
__________________
Sincerely
Mike Kelly
teclance is offline  
Old 12-16-2005, 01:37 PM   #2 (permalink)
jdk
Senior Member
 
jdk's Avatar
 
Join Date: Jul 2004
Location: Florida
Posts: 1,223
306.40 NP$ (Donate)

jdk is a name known to alljdk is a name known to alljdk is a name known to alljdk is a name known to alljdk is a name known to alljdk is a name known to all


You sure it isn't your server? You want to PM me the link to see if it is slow on my end?
__________________
All bids are valid for 24 hours unless otherwise stated.
jdk is online now  
Old 12-16-2005, 03:43 PM   #3 (permalink)
Senior Member
 
Scott's Avatar
 
Join Date: Jun 2003
Location: UK
Posts: 3,773
58.82 NP$ (Donate)

Scott has a reputation beyond reputeScott has a reputation beyond reputeScott has a reputation beyond reputeScott has a reputation beyond reputeScott has a reputation beyond reputeScott has a reputation beyond reputeScott has a reputation beyond reputeScott has a reputation beyond reputeScott has a reputation beyond reputeScott has a reputation beyond reputeScott has a reputation beyond repute

Save The Children Save The Children Save The Children Save The Children Save The Children
Are you sure it's not entering a loop?
You're redirecting http(or)https://www.domain.com/signup.php to https://www.domain.com/signup.php.

Try this in your .htaccess (and remove the current Redirect you have):

Code:
RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^signup.php$ https://www.domain.com/signup.php$1

Last edited by Scott; 12-16-2005 at 03:48 PM.
Scott is offline  
Old 12-18-2005, 12:28 PM   #4 (permalink)
NamePros Regular
 
Join Date: Feb 2004
Posts: 631
57.15 NP$ (Donate)

teclance is on a distinguished road


Quote:
Originally Posted by Scott
Are you sure it's not entering a loop?
You're redirecting http(or)https://www.domain.com/signup.php to https://www.domain.com/signup.php.

Try this in your .htaccess (and remove the current Redirect you have):

Code:
RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^signup.php$ https://www.domain.com/signup.php$1
Hi,

I gave your method a shot and it worked aswell but it still redirects slow. I am confused

ok, I did some test and it appears to be only a couple pages causing the problem.

I changed to the redirect to another https:// off the site and it worked perfect so now I am assuming there is a code on the actuall page I am trying to redirect.
__________________
Sincerely
Mike Kelly
teclance is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
.htaccess expert/url redirection dotcommakers Web Development Wanted 6 10-02-2005 02:00 AM
Using mod_rewrite and a .htaccess to do some redirection... 25 NP$ REWARD mholt Programming 0 09-21-2005 02:15 PM
.htaccess + Domain Parking wistow Programming 15 07-04-2005 08:46 AM
CE7.net - Free phpBB & IPB forums, blogs, hosting & redirection! No banners/popups! ppx Web Hosting Offers 0 05-14-2005 12:49 AM

Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 12:30 PM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85