Base URL

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 08-06-2007, 02:34 AM
New Pligger
 
Join Date: Aug 2006
Posts: 12
Is there a way to set 2 base URL's?

Here is my issue, maybe there is a 2nd way to fix it....

I want my site to be https:// but sometimes (when people type it or link to it) it is http:// and when the base url doesn't match people cant vote....

anyone know how to fix it?

Thank you!
Reply With Quote
  #2 (permalink)  
Old 08-06-2007, 02:43 AM
Casual Pligger
 
Join Date: Apr 2007
Posts: 41
Have you tried mod_rewrite on .htaccess? That way if the type in
Quote:
http://
it can be re-directed to
Reply With Quote
  #3 (permalink)  
Old 08-06-2007, 03:00 AM
New Pligger
 
Join Date: Aug 2006
Posts: 12
Thank you for your reply

i see

##### Re-directing Begin #####
Options +Indexes +FollowSymlinks
RewriteEngine on
## If Pligg is installed in a subfolder, change the below line to RewriteBase /name-of-subfolder
RewriteBase /
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*index\.php\ HTTP/

## Remove these two lines if you have a sub-domain like http://ashdigg.pligg.com or cPanel®
## Keep if your site it like Pligg Content Management System
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^\/?(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
##### Re-directing End #####

should i just add "s" after all the http 's ?
Reply With Quote
  #4 (permalink)  
Old 08-06-2007, 11:42 AM
Casual Pligger
 
Join Date: Apr 2007
Posts: 41
Sorry - I know it can be done with mod_rewrite, but I am no expert on that. I usually play with it until I get it right

for https redirection, this link seems to have a handle on it

Techyblog.com - HTTP to HTTPS via mod_rewrite

I would think you would add the lines immediately after the rewriteengine on in your code.

Quote:
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*) https://your_server.com/$1
Reply With Quote
  #5 (permalink)  
Old 08-07-2007, 04:03 AM
New Pligger
 
Join Date: Aug 2006
Posts: 12
this is all really confusing, i will look into your suggestions

thank you!
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Major Data Base Issuese - Crashing Server konvictcollin Questions and Comments 0 12-18-2008 11:59 AM
What do I enter in 'Pligg Base Folder' ? Sequin Questions and Comments 9 02-14-2008 07:02 PM
Help! My sql base no conect KosoyRoman Questions and Comments 1 10-18-2007 09:32 AM
Need Good base template brandondrury Questions and Comments 2 10-12-2007 03:58 PM
All Links For Story With Base URL cinder Questions and Comments 0 03-20-2007 10:11 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development