Links in E-Mail go to Sign-In-Page instead to posts

[ad_1]

Hello @fraumaria,

it looks like you’ve set up a basic authentication to your own website, I tried to sign up to your newsletter and the same login form appeared to me.

Michael

Hi, as said by Micheal, your admin side (/wp-admin) has been protected with basic auth, probably a configuration in your .htaccess.

But this block, blocks even the public ajax calls to wp-admin/admin-ajax.php: you should as to add an exception for that script in your basic auth configuration.

Or go to the Newsletter/Settings/Advanced and change the action link from alternative to default: all the Newsletter’s action links will use a different format and not the admin-ajax.php endpoint.

Hi Stefano and Michael,

Thanks for the hint with signing up to the newsletter. This never came up to my mind.

I did not change anythig in my .htaccess file since months and the last newsletter on Sept 5th worked fine…
Maybe an update from wordpress or the newsletter plugin changed that behavior?

Anyway:

I first switched the Newsletter/Setting/Advanced Tracking and Action Menu to „Normal“ (I can’t remember that I ever had switched it to „Advanced“) and now the newsletter works.
Hovering the links in the test-newsletter now does not show “/wp-admin/” anymore and everything works normally.

And: To enable the newsletter Sign-Up again I put the following lines into the webroot .htaccess file

#Allow access to admin-ajax.php without authentication
SetEnvIf Request_URI "^/wp-admin/admin-ajax.php$" allow_ajax
Order allow,deny
Allow from env=allow_ajax
Satisfy any

Now also the newsletter Sign-Up works again. Maybe this helps other users too.

Thank you very much for your fast and excellent support!

Greetings

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer