• Home
  • Showcase
    • Newspaper Showcase
    • Newsmag Showcase
  • Support
    • Newspaper Forum
    • Newsmag Forum
    • Blog
    • Documentation
      • Newspaper Documentation
      • Newsmag Documentation
      • The Theme API
    • What’s New
      • Newspaper
        • What’s New in v 11.5
        • What’s New in v 11.4.3
        • What’s New in v 11.4
        • What’s New in v 11.2
        • What’s New in v 11
        • What’s New in v 10.4
        • What’s New in v 10.3.7
        • What’s New in v 10.3.2
        • What’s New in v 10.3
        • What’s New in v 10
      • Changelog
        • Newspaper
        • Newsmag
        • tagDiv Opt-In Builder
  • Services
    • Web Development Services
    • Web Solutions & CMS Development
    • Web design & Front-end Development
    • E-Commerce Development Services
    • Page Speed Optimization Services
  • Buy Newspaper
Search
tagDiv support
  • Become a member
  • Sign in
  • Home
  • Showcase
    • Newspaper Showcase
    • Newsmag Showcase
  • Support
    • Newspaper Forum
    • Newsmag Forum
    • Blog
    • Documentation
      • Newspaper Documentation
      • Newsmag Documentation
      • The Theme API
    • What’s New
      • Newspaper
        • What’s New in v 11.5
        • What’s New in v 11.4.3
        • What’s New in v 11.4
        • What’s New in v 11.2
        • What’s New in v 11
        • What’s New in v 10.4
        • What’s New in v 10.3.7
        • What’s New in v 10.3.2
        • What’s New in v 10.3
        • What’s New in v 10
      • Changelog
        • Newspaper
        • Newsmag
        • tagDiv Opt-In Builder
  • Services
    • Web Development Services
    • Web Solutions & CMS Development
    • Web design & Front-end Development
    • E-Commerce Development Services
    • Page Speed Optimization Services
  • Buy Newspaper

This forum is now closed to new posts

All existing content remains available to browse and search. For support, please email us at contact@tagdiv.com Our team is happy to help as soon as possible.

Home Newspaper Prompted to login when inputting typing into search form / widget

Prompted to login when inputting typing into search form / widget

Posted in: Newspaper
Post count: 4
support@leadid.net
#492394
Nov 15, 2023 at 2:30 am

Hello,

I have a site where I enabled apache basic authentication before before the acutal WP login page, this is done through .htaccess file directives. I’ve provided a link to a How to page, so you can better understand what I’ve implemented and it works, however it works in an erea where I don’t want it to work, i.e. affecting the inputs of search. You are welcome to see the issue by going to https://healthstoday.com and at the top right of the header you’ll see the ‘magnifying glass’ click to search and then attempt type in a search term, say, “exercise” the second you input an ‘ex…’ or any character the Apache Login modal window appears. That is only suppose to appear and it does when users attempt to hit the WordPress login page, https://healthstoday.com/wp-admin. Now, I don’t think the issue is a tagDiv or even WordPress issue, I suspect the issue is in the path locations pointing to key sections and files, thus my request for support because I would like to know a few things about the Newspaper theme.

The site is updated with regards to apache, PHP, and db, the Newspaper theme is installed and is one minor version behind.

I would like to know the path to the magnifying glass / search code to update the .htaccess files path.
What solution(s) do you think I should try?
I’m little weak in the WP area but is it a component, widget, block? (Reply if relevant if not no worries)?

Here is the wordpress-https-vhost.conf file for your review.
<VirtualHost 127.0.0.1:443 _default_:443>
ServerName http://www.healthstoday.com
ServerAlias *
SSLEngine on
SSLCertificateFile “/path/to/apache/conf/bitnami/ssl/certificate.crt”
SSLCertificateChainFile “/path/to/apache/conf/bitnami/ssl/ca_bundle.crt”
SSLCertificateKeyFile “/path/to/bitnami/ssl/private/private.key”
DocumentRoot /path/to/wordpress
<Directory “/path/to/wordpress”>
Options -Indexes +FollowSymLinks -MultiViews
AllowOverride None
Require all granted
RewriteEngine On
RewriteRule ^relative-path/to/wordpress(/.*) $1 [L]
# END WordPress fix for plugins and themes
# BEGIN WordPress
# https://wordpress.org/support/article/htaccess/#basic-wp
RewriteEngine On
RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
</Directory>
Include “/path/to/apache/conf/vhosts/htaccess/wordpress-htaccess.conf”
<LocationMatch “^/(wp-admin|wp-login\.php)”>
AuthType Basic
AuthName “Private access”
AuthUserFile “/path/to/apache/.htpasswd”
Require valid-user
</LocationMatch>
# FOLLOWING THREE LINES DID NOT WORK
# <Location “/wp-admin/search.php”>
# Allow from all
# </Location>
# IS THE FOLLOWING LINE CORRECT OR SHOULD THE PATH BE DIFFERENT
<Location “/path/to/wordpress/wp-content/plugins/td-standard-pack/Newspaper/search.php”>
Allow from all
</Location>
# FOLLOWING 3 LINES WORK
<FilesMatch “^license\.txt$”>
Require all denied
</FilesMatch>
</VirtualHost>

Please help me tagDiv your my only hope. 😉

Regards,
Joey

Post count: 35449
Calin
#492467
Nov 15, 2023 at 11:47 am

Hi,
It looks that this extra security is locking the theme admin-ajax request – https://i.imgur.com/Zs3LaiB.png I think that this problem can be resolved by excluding that path from from applying the protection code.
I hope this will help you!

Post count: 4
support@leadid.net
#492579
Nov 16, 2023 at 4:07 am

Hi Calin,

Thank you for taking the time to reply, I think you may have found the solution, unfortunately even though I tried to make the update other pressing responsibilities kept me away from following through on your recommendation, I know I will have / make time for it tomorrow. I wanted to quickly reach and say thank you for looking into this. I will reply tomorrow to let you know how it went. Thank you.

Regards,
Joey

Post count: 35449
Calin
#492628
Nov 16, 2023 at 9:37 am

Hi,
I think it can be use something like this – https://gist.github.com/vielhuber/6e755cdeeaf14f3abbbaebc7d5308b78
On the line “SetEnvIf Request_URI “^/wp-json/” allow_path” you can replace it with the one that appears in console.
I hope this will help a bit!

Post count: 4
support@leadid.net
#492959
Nov 18, 2023 at 3:42 am

Hell Calin,

After many many attempts to get it to work, I was finally successful. Your advice and tips from both replies helped and I don’t think I could have done it without you. THANK YOU VERY MUCH. I wish you the best. FYI, I will be buying another license of tagDiv Newspaper, I’m very happy with your product and especially the service. 10 out of 10.

Regards,
Joey

Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Newspaper’ is closed to new topics and replies.
support@leadid.net
Support Hours (GMT+2)

Monday - Friday:
8:00 AM - 17:00 PM

Documentation
  • Newspaper
  • Newsmag
Facebook Instagram Twitter Youtube
Welcome to the Community! This is our main Support Center and, also the place where you can make new friends, people just as passionate about websites as you are. Don’t hesitate to ask for help as we are here for you. Thank you for buying our products!
Contact us: contact@tagdiv.com
  • Home
  • Blog
  • Forums
  • About us
  • Support policy
  • Privacy Policy
© tagdiv.com | Proudly made with by tagDiv. All rights reserved
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
Cookie SettingsAccept All
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-advertisement1 yearThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Advertisement".
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
CookieDurationDescription
_ga2 yearsThis cookie is installed by Google Analytics. The cookie is used to calculate visitor, session, campaign data and keep track of site usage for the site's analytics report. The cookies store information anonymously and assign a randomly generated number to identify unique visitors.
_gat_gtag_UA_43963494_11 minuteThis cookie is set by Google and is used to distinguish users.
_gid1 dayThis cookie is installed by Google Analytics. The cookie is used to store information of how visitors use a website and helps in creating an analytics report of how the website is doing. The data collected including the number visitors, the source where they have come from, and the pages visted in an anonymous form.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
CookieDurationDescription
IDE1 year 24 daysUsed by Google DoubleClick and stores information about how the user uses the website and any other advertisement before visiting the website. This is used to present users with ads that are relevant to them according to the user profile.
test_cookie15 minutesThis cookie is set by doubleclick.net. The purpose of the cookie is to determine if the user's browser supports cookies.
VISITOR_INFO1_LIVE5 months 27 daysThis cookie is set by Youtube. Used to track the information of the embedded YouTube videos on a website.
YSCsessionThis cookies is set by Youtube and is used to track the views of embedded videos.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
CookieDurationDescription
CONSENT16 years 5 months 26 days 13 hours 25 minutesNo description
yt-remote-connected-devicesneverThis cookies is set by Youtube and stores the user's video player preferences using embedded YouTube video.
yt-remote-device-idneverThis cookies is set by Youtube and stores the user's video player preferences using embedded YouTube video.
SAVE & ACCEPT
Powered by CookieYes Logo