Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

   

Reply
 
LinkBack Thread Tools Display Modes
Old 05-11-2007, 11:20 AM   #1 (permalink)
Contributing Member
 
funguru's Avatar
 
Join Date: 02-22-04
Location: California
Posts: 1,000
iTrader: 1 / 100%
Latest Blog:
The Web 2.0 Look!

funguru is just really nicefunguru is just really nicefunguru is just really nicefunguru is just really nicefunguru is just really nicefunguru is just really nicefunguru is just really nicefunguru is just really nice
SSL question

Hi.. i am designing a database driven website for a client with login info etc.. half way down the project the client wants the website on secure server.. therefore i am getting the server a SSL docomo certificate..

my question is, what changes would i need to do (if any) for my login and other pages to work while there are in SSL server?

Thanks a ton for the help.
__________________
Add Link Directory $2 Submissions | SpeedHost.in Web Hosting India
funguru is offline  
Add Post to del.icio.us
Reply With Quote
Old 05-12-2007, 11:38 AM   #2 (permalink)
Contributing Member
 
exam's Avatar
 
Join Date: 04-20-06
Posts: 310
iTrader: 0 / 0%
Latest Blog:
None

exam is a highly respected web proexam is a highly respected web proexam is a highly respected web proexam is a highly respected web proexam is a highly respected web proexam is a highly respected web proexam is a highly respected web proexam is a highly respected web proexam is a highly respected web proexam is a highly respected web proexam is a highly respected web pro
I depends on how you're doing the login, but normally you don't have to make any changes to your code. The HTTPS stream encrypts the data being sent to and from the server, but it is transparent to the backend application.
__________________
~exam~
exam is offline  
Add Post to del.icio.us
Reply With Quote
Old 05-12-2007, 08:22 PM   #3 (permalink)
Contributing Member
 
funguru's Avatar
 
Join Date: 02-22-04
Location: California
Posts: 1,000
iTrader: 1 / 100%
Latest Blog:
The Web 2.0 Look!

funguru is just really nicefunguru is just really nicefunguru is just really nicefunguru is just really nicefunguru is just really nicefunguru is just really nicefunguru is just really nicefunguru is just really nice
would i have to now have to do absolute urls and not relative.

so before if i was just linking to login.php, now i would have to link it to https://mydomamin.com/login.php ?
__________________
Add Link Directory $2 Submissions | SpeedHost.in Web Hosting India
funguru is offline  
Add Post to del.icio.us
Reply With Quote
Old 05-12-2007, 10:26 PM   #4 (permalink)
v7n Mentor
 
Sketch's Avatar
 
Join Date: 05-06-04
Location: London, UK
Posts: 1,453
iTrader: 0 / 0%
Latest Blog:
None

Sketch is a highly respected web proSketch is a highly respected web proSketch is a highly respected web proSketch is a highly respected web proSketch is a highly respected web proSketch is a highly respected web proSketch is a highly respected web proSketch is a highly respected web proSketch is a highly respected web proSketch is a highly respected web proSketch is a highly respected web pro
Thats my understanding of it funguru.

However you may want to put a redirection on the login.php to ensure that it always goes to the secure version.

Something like this will help;
Code:
if($_SERVER['ssl_access'] != 1 && $_SERVER['HTTPS'] != on) { header("Location: https://www.yourdomain.com/login.php"); exit(); }
Sketch is offline  
Add Post to del.icio.us
Reply With Quote
Old 05-13-2007, 12:39 AM   #5 (permalink)
Contributing Member
 
funguru's Avatar
 
Join Date: 02-22-04
Location: California
Posts: 1,000
iTrader: 1 / 100%
Latest Blog:
The Web 2.0 Look!

funguru is just really nicefunguru is just really nicefunguru is just really nicefunguru is just really nicefunguru is just really nicefunguru is just really nicefunguru is just really nicefunguru is just really nice
I get your point sketch.. just that it would be hard to make everything on absolute url.. i think there should be a better way..
__________________
Add Link Directory $2 Submissions | SpeedHost.in Web Hosting India
funguru is offline  
Add Post to del.icio.us
Reply With Quote
Old 05-13-2007, 11:50 PM   #6 (permalink)
v7n Mentor
 
Sketch's Avatar
 
Join Date: 05-06-04
Location: London, UK
Posts: 1,453
iTrader: 0 / 0%
Latest Blog:
None

Sketch is a highly respected web proSketch is a highly respected web proSketch is a highly respected web proSketch is a highly respected web proSketch is a highly respected web proSketch is a highly respected web proSketch is a highly respected web proSketch is a highly respected web proSketch is a highly respected web proSketch is a highly respected web proSketch is a highly respected web pro
I have a feeling you can do it in your htaccess file, I just have no idea how to do it...
Sketch is offline  
Add Post to del.icio.us
Reply With Quote
Old 05-14-2007, 08:39 AM   #7 (permalink)
Contributing Member
 
exam's Avatar
 
Join Date: 04-20-06
Posts: 310
iTrader: 0 / 0%
Latest Blog:
None

exam is a highly respected web proexam is a highly respected web proexam is a highly respected web proexam is a highly respected web proexam is a highly respected web proexam is a highly respected web proexam is a highly respected web proexam is a highly respected web proexam is a highly respected web proexam is a highly respected web proexam is a highly respected web pro
Try this in your .htaccess file:

Code:
RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
Some servers don't have the HTTPS variable set. In that case, try this:

Code:
RewriteEngine On RewriteCond %{SERVER_PORT} !443 RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R]
__________________
~exam~
exam is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



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

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

vB 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
CD Question Linda in NY Computers & Internet 17 01-04-2007 11:29 AM
Question about question marks? clipse Coding Forum 18 03-15-2006 03:21 PM
vB Skinning Question. CSS Question. JuggoPop Coding Forum 10 02-28-2006 01:44 PM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 10:38 AM.
© Copyright 2008 V7 Inc