Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Programming Q&A
.htacess + SSL Problem :/
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Sly" data-source="post: 389113" data-attributes="member: 72035"><p><strong>Whenever I add</strong></p><p></p><p>RewriteEngine On</p><p>RewriteCond %{SERVER_PORT} 80</p><p>RewriteRule ^(.*)$ <a href="https://www.example.com/$1" target="_blank">https://www.example.com/$1</a> [R,L]</p><p></p><p>this to my <strong>.htaccess</strong> it loads the SSL perfectly fine with a green lock but it ruins all the files in my .htacess.. such as the registration page and all the tabs within my website and they dont function properly.</p><p></p><p>but if I dont add that rule^ above everything loads perfectly fine and functional but the SSL green lock does not appear on my other pages such as /register :/</p><p></p><p>I want the SSL green lock to appear and my website to be fully functional.</p><p></p><p>Long story short whenever I use <a href="https://retrorank.com/register" target="_blank">https://retrorank.com/register</a> (register form doesn't function properly test it yourself)</p><p>But when I use retrorank.com/register (it works just fine)</p><p></p><p><strong>Heres my .htaccess</strong></p><p></p><p>[PHP]Options -Indexes</p><p></p><p><IfModule mod_rewrite.c></p><p> RewriteEngine On</p><p> </p><p> RewriteRule ^index$ index.php</p><p> RewriteRule ^sitemap.xml$ sitemap.php</p><p> RewriteRule ^login$ index.php?page=login</p><p> RewriteRule ^logout$ index.php?page=logout</p><p> RewriteRule ^register$ index.php?page=register</p><p> RewriteRule ^resend-activation$ index.php?page=resendactivation</p><p> RewriteRule ^submit$ index.php?page=submit</p><p> RewriteRule ^lost-password$ index.php?page=lostpassword</p><p> RewriteRule ^reset-password/(.*)/(.*)$ index.php?page=resetpassword&email=$1&lost_password_code=$2</p><p> RewriteRule ^activate/(.*)/(.*)$ index.php?page=activate&email=$1&activation_code=$2</p><p> RewriteRule ^not-found$ index.php?page=notfound</p><p> RewriteRule ^purchase-highlight$ index.php?page=purchase_highlight</p><p></p><p> RewriteRule ^terms-of-service$ index.php?page=tos</p><p> RewriteRule ^contact$ index.php?page=contact</p><p> RewriteRule ^privacy-policy$ index.php?page=privacy_policy</p><p> RewriteRule ^disclaimer$ index.php?page=disclaimer</p><p></p><p> RewriteRule ^settings/design$ index.php?page=designs</p><p> RewriteRule ^settings/password$ index.php?page=password</p><p> RewriteRule ^settings/profile$ index.php?page=settings</p><p></p><p> RewriteRule ^edit-server/(.*)/(.*)/(.*)$ index.php?page=server_edit&server_id=$1&type=$2&token=$3</p><p> RewriteRule ^edit-server/(.*)$ index.php?page=server_edit&server_id=$1</p><p></p><p> RewriteRule /status/access$ index.php?status=access</p><p> RewriteRule ^status/loggedout$ index.php?status=loggedout</p><p> RewriteRule ^status/loggedin$ index.php?status=loggedin</p><p></p><p> RewriteRule ^admin/categories-management$ index.php?page=admin_categories_management</p><p> RewriteRule ^admin/categories-management/delete/(.*)/(.*)$ index.php?page=admin_categories_management&delete=$1&token=$2</p><p> RewriteRule ^admin/edit-category/(.*)$ index.php?page=admin_category_edit&category_id=$1</p><p></p><p> RewriteRule ^admin/users-management$ index.php?page=admin_users_management</p><p> RewriteRule ^admin/users-management/status/(.*)/(.*)$ index.php?page=admin_users_management&status=$1&token=$2</p><p> RewriteRule ^admin/users-management/delete/(.*)/(.*)$ index.php?page=admin_users_management&delete=$1&token=$2</p><p> RewriteRule ^admin/edit-user/(.*)$ index.php?page=admin_user_edit&user_id=$1</p><p></p><p> RewriteRule ^admin/payments-management$ index.php?page=admin_payments_management</p><p> RewriteRule ^admin/payments-management/delete/(.*)/(.*)$ index.php?page=admin_payments_management&delete=$1&token=$2</p><p></p><p> RewriteRule ^admin/servers-management$ index.php?page=admin_servers_management</p><p> RewriteRule ^admin/servers-management/status/(.*)/(.*)$ index.php?page=admin_servers_management&status=$1&token=$2</p><p> RewriteRule ^admin/servers-management/delete/(.*)/(.*)$ index.php?page=admin_servers_management&delete=$1&token=$2</p><p> </p><p> RewriteRule ^admin/edit-server/(.*)/(.*)/(.*)$ index.php?page=admin_server_edit&server_id=$1&type=$2&token=$3</p><p> RewriteRule ^admin/edit-server/(.*)$ index.php?page=admin_server_edit&server_id=$1</p><p></p><p> RewriteRule ^admin/reports-management$ index.php?page=admin_reports_management</p><p> RewriteRule ^admin/edit-report/(.*)$ index.php?page=admin_report_edit&report_id=$1 [QSA]</p><p></p><p> RewriteRule ^admin/website-settings$ index.php?page=admin_website_settings</p><p> RewriteRule ^admin/website-settings/success$ index.php?page=admin_website_settings&status=success</p><p></p><p> RewriteRule ^admin/website-statistics$ index.php?page=admin_website_statistics</p><p> RewriteRule ^admin/reset$ index.php?page=admin_reset</p><p></p><p> RewriteRule ^servers$ index.php?page=servers [QSA]</p><p> RewriteRule ^servers/([^/]+)$ index.php?page=servers&current_page=$1 [QSA]</p><p> RewriteRule ^my-servers$ index.php?page=my_servers [QSA]</p><p> RewriteRule ^my-servers/([^/]+)$ index.php?page=my_servers&current_page=$1 [QSA]</p><p> RewriteRule ^my-favorites$ index.php?page=my_favorites [QSA]</p><p> RewriteRule ^my-favorites/([^/]+)$ index.php?page=my_favorites&current_page=$1 [QSA]</p><p> RewriteRule ^profile/([^/]+)$ index.php?page=profile&username=$1</p><p> RewriteRule ^server/([^/]+):([^/]+)$ index.php?page=server&address=$1&port=$2</p><p> RewriteRule ^category/([^/]*)$ index.php?page=category&url=$1</p><p> RewriteRule ^category/([^/]*)/([^/]*)$ index.php?page=category&url=$1&current_page=$2</p><p> RewriteRule ^banner/(.*)/(.*)/(.*)/(.*)$ pages/banner.php?server_id=$1&background=$2&text_color=$3&border_color=$4 [QSA]</p><p></p><p></IfModule>[/PHP]</p></blockquote><p></p>
[QUOTE="Sly, post: 389113, member: 72035"] [B]Whenever I add[/B] RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ [URL]https://www.example.com/$1[/URL] [R,L] this to my [B].htaccess[/B] it loads the SSL perfectly fine with a green lock but it ruins all the files in my .htacess.. such as the registration page and all the tabs within my website and they dont function properly. but if I dont add that rule^ above everything loads perfectly fine and functional but the SSL green lock does not appear on my other pages such as /register :/ I want the SSL green lock to appear and my website to be fully functional. Long story short whenever I use [URL]https://retrorank.com/register[/URL] (register form doesn't function properly test it yourself) But when I use retrorank.com/register (it works just fine) [B]Heres my .htaccess[/B] [PHP]Options -Indexes <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^index$ index.php RewriteRule ^sitemap.xml$ sitemap.php RewriteRule ^login$ index.php?page=login RewriteRule ^logout$ index.php?page=logout RewriteRule ^register$ index.php?page=register RewriteRule ^resend-activation$ index.php?page=resendactivation RewriteRule ^submit$ index.php?page=submit RewriteRule ^lost-password$ index.php?page=lostpassword RewriteRule ^reset-password/(.*)/(.*)$ index.php?page=resetpassword&email=$1&lost_password_code=$2 RewriteRule ^activate/(.*)/(.*)$ index.php?page=activate&email=$1&activation_code=$2 RewriteRule ^not-found$ index.php?page=notfound RewriteRule ^purchase-highlight$ index.php?page=purchase_highlight RewriteRule ^terms-of-service$ index.php?page=tos RewriteRule ^contact$ index.php?page=contact RewriteRule ^privacy-policy$ index.php?page=privacy_policy RewriteRule ^disclaimer$ index.php?page=disclaimer RewriteRule ^settings/design$ index.php?page=designs RewriteRule ^settings/password$ index.php?page=password RewriteRule ^settings/profile$ index.php?page=settings RewriteRule ^edit-server/(.*)/(.*)/(.*)$ index.php?page=server_edit&server_id=$1&type=$2&token=$3 RewriteRule ^edit-server/(.*)$ index.php?page=server_edit&server_id=$1 RewriteRule /status/access$ index.php?status=access RewriteRule ^status/loggedout$ index.php?status=loggedout RewriteRule ^status/loggedin$ index.php?status=loggedin RewriteRule ^admin/categories-management$ index.php?page=admin_categories_management RewriteRule ^admin/categories-management/delete/(.*)/(.*)$ index.php?page=admin_categories_management&delete=$1&token=$2 RewriteRule ^admin/edit-category/(.*)$ index.php?page=admin_category_edit&category_id=$1 RewriteRule ^admin/users-management$ index.php?page=admin_users_management RewriteRule ^admin/users-management/status/(.*)/(.*)$ index.php?page=admin_users_management&status=$1&token=$2 RewriteRule ^admin/users-management/delete/(.*)/(.*)$ index.php?page=admin_users_management&delete=$1&token=$2 RewriteRule ^admin/edit-user/(.*)$ index.php?page=admin_user_edit&user_id=$1 RewriteRule ^admin/payments-management$ index.php?page=admin_payments_management RewriteRule ^admin/payments-management/delete/(.*)/(.*)$ index.php?page=admin_payments_management&delete=$1&token=$2 RewriteRule ^admin/servers-management$ index.php?page=admin_servers_management RewriteRule ^admin/servers-management/status/(.*)/(.*)$ index.php?page=admin_servers_management&status=$1&token=$2 RewriteRule ^admin/servers-management/delete/(.*)/(.*)$ index.php?page=admin_servers_management&delete=$1&token=$2 RewriteRule ^admin/edit-server/(.*)/(.*)/(.*)$ index.php?page=admin_server_edit&server_id=$1&type=$2&token=$3 RewriteRule ^admin/edit-server/(.*)$ index.php?page=admin_server_edit&server_id=$1 RewriteRule ^admin/reports-management$ index.php?page=admin_reports_management RewriteRule ^admin/edit-report/(.*)$ index.php?page=admin_report_edit&report_id=$1 [QSA] RewriteRule ^admin/website-settings$ index.php?page=admin_website_settings RewriteRule ^admin/website-settings/success$ index.php?page=admin_website_settings&status=success RewriteRule ^admin/website-statistics$ index.php?page=admin_website_statistics RewriteRule ^admin/reset$ index.php?page=admin_reset RewriteRule ^servers$ index.php?page=servers [QSA] RewriteRule ^servers/([^/]+)$ index.php?page=servers¤t_page=$1 [QSA] RewriteRule ^my-servers$ index.php?page=my_servers [QSA] RewriteRule ^my-servers/([^/]+)$ index.php?page=my_servers¤t_page=$1 [QSA] RewriteRule ^my-favorites$ index.php?page=my_favorites [QSA] RewriteRule ^my-favorites/([^/]+)$ index.php?page=my_favorites¤t_page=$1 [QSA] RewriteRule ^profile/([^/]+)$ index.php?page=profile&username=$1 RewriteRule ^server/([^/]+):([^/]+)$ index.php?page=server&address=$1&port=$2 RewriteRule ^category/([^/]*)$ index.php?page=category&url=$1 RewriteRule ^category/([^/]*)/([^/]*)$ index.php?page=category&url=$1¤t_page=$2 RewriteRule ^banner/(.*)/(.*)/(.*)/(.*)$ pages/banner.php?server_id=$1&background=$2&text_color=$3&border_color=$4 [QSA] </IfModule>[/PHP] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
.htacess + SSL Problem :/
Top