Jump to content
Latest News: (loading..)

Search the Community

Showing results for tags 'htaccess'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News and Announcements
    • News and Announcements
    • Partner Announcements
    • Ambassadors
  • Commercial Support
    • Developer Feedback
  • osCommerce Online Merchant v2.x
    • General Support
    • Installation and Configuration
    • Upgrading from Earlier Versions (v2.x to v2.x)
    • Add-Ons
    • Tips and Tricks
    • Security
  • Development
    • osCommerce Online Merchant v2.4
    • osCommerce Online Merchant Community Bootstrap Edition
    • osCommerce Online Merchant v3.x
    • Development Proposals
  • General
    • OSCOMMERCE.TV
    • Next Steps / Optimizations / Marketing
    • Live Shop Reviews
    • E-Commerce Laws
    • General Discussions
    • PHP / SQL / Web Design
  • Club osC's Announcements
  • PayPal's Announcements
  • Sage Pay's Announcements
  • Solomono - new level osCommerce templates's Announcements
  • German Community's OSCOM v2.x
  • German Community's Allgemein
  • German Community's OSCOM v3.x

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Real Name


Location


Interests


Website

Found 2 results

  1. Hi there i am looking for some help with how to combine parts of the below htaccess to make it more efficient At the moment any traffic to my site is redirected to https ... www, nonwww, etc So that all works fine. At the end of the code it redirects index.php to home All works just fine but if someone comes to index.php from nonwww or www or http it first redirects to https://www.mydomain/index.php and redirects again to https://www.mydomain i am trying to find a way to avoid the second hop. Doug :-> RewriteEngine On RewriteCond %{HTTPS} !on RewriteCond %{HTTP_USER_AGENT} !facebookexternalhit/[0-9] RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv $RewriteCond %{REQUEST_URI} !^/\.known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)? $RewriteRule ^(.*)$ https://www.domain/$1 [R=301,L] RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv $RewriteCond %{REQUEST_URI} !^/\.known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)? $RewriteRule ^(.*)$ https://www.domain/$1 [R=301,L] RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/ RewriteRule ^index\.php$ https://www.domain/ [R=301,L]
  2. Tsimi

    Shop redirect, htaccess

    What should go into my htaccess file if I need to have the following redirects. 1. From example.com to https:// www.example.com/store/ (added space after // to prevent showing it as URL link) and 2. From www.example.com to https:// www.example.com/store/ (added space after // to prevent showing it as URL link) and 3. force SSL on the whole store. I think #3 can be done by adding https on HTTP_SERVER and HTTPS_SERVER inside the configure.php file.
×