Jump to content

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
  • osCommerce Online Merchant v2.x
    • General Support
    • osCommerce Online Merchant Community Bootstrap Edition
    • Add-Ons
  • Development
  • General
    • General Discussions
    • Live Shop Reviews
    • Security
    • Developer Feedback
  • PayPal's Announcements
  • Sage Pay's Announcements
  • Solomono - new level osCommerce templates's Announcements
  • German Community's OSCOM v2.x
  • German Community's Allgemein

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. Chadduck

    OSC and .htaccess

    I am moving my store to a new server - My NEW SYSTEM operating environment Ubuntu 18.04.2 LTS PHP version: 7.2.19-0ubuntu0.18.04.1 mysql Ver 14.14 Distrib 5.7.27 OSCommerce 2.3.4 Before anyone points out that the OSC bootstrap version is better - I am simply moving the store from one server to another. My question involves the usage of .htaccess to password protect the access to the admin section ASSUME OSC admin username is CharlesDuncan OSC admin password is Duncan2345 WHY is it if those are entered in the .htpasswd file that the OSC login screen is bypassed and the user is placed on the administration screen of OSC? ANY OTHER user name and password combination for .htaccess puts the user on the login screen called by login.php?action=process To verifiy this I went to my existing production server and tested it. The production server operates with older versions of Ubuntu, php, and MySql but the same OSC version. It does the same thing. Obviously I immediately removed the new entry in .htpasswd BUT I was wondering if others have ran into this.
  2. 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]
×