Options -Indexes
#End Really Simple Security
# BEGIN WordPress
# Las directivas (líneas) entre «BEGIN WordPress» y «END WordPress» son
# generadas dinámicamente y solo deberían ser modificadas mediante
# filtros de WordPress.
# Cualquier cambio en las directivas que hay entre esos marcadores
# serán sobrescritas.
<IfModule mod_rewrite.c>
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]
</IfModule>
#Redirect 301 /es/wp-login hidden link
# END WordPress
As you can see, I tried creating a 301 redirection to fix this but it didn't work so I commented that line.
I disable sitepress cms plugin (the main WPML plugin) by adding an underscore in FTP (like this: _sitepress_cms).
This gave me access to my back office again.
Then I want to my WP settings and I noticed that my WP was in ENGLISH while my main WPML language is SPANISH.
So I changed WP to Spanish and removed the underscore in the plugin (to make it enable again) and this solved my issue.
So apparently WPML main language MUST be the same as your WP language.
I hope this might be of help to others with similar issues.
I thought I had fixed my problem but it "came back".
I disabled sitepress-multilingual-cms plugin and could get back into the back end of my WP.
By the way, I have checked and the Settings Language were still in Spanish and my wp-config.php mentions ES too:
define( 'WPLANG', 'es_ES' );
If I enable sitepress-multilingual-cms plugin again, I lose access to the back end because visiting /wp-admin redirects me to hidden link
and shows a 404 error page
BTW, this is my .htaccess in case it's helpful information:
Options -Indexes
#End Really Simple Security
# BEGIN WordPress
# Las directivas (líneas) entre «BEGIN WordPress» y «END WordPress» son
# generadas dinámicamente y solo deberían ser modificadas mediante
# filtros de WordPress.
# Cualquier cambio en las directivas que hay entre esos marcadores
# serán sobrescritas.
<IfModule mod_rewrite.c>
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]
</IfModule>
#Redirect 301 /es/wp-login hidden link
# END WordPress
# BEGIN DS-XML-RPC-API
# Las directivas (líneas) entre «BEGIN DS-XML-RPC-API» y «END DS-XML-RPC-API» son
# generadas dinámicamente y solo deberían ser modificadas mediante filtros de WordPress.
# Cualquier cambio en las directivas que hay entre esos marcadores serán sobrescritas.
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^hidden link [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?google.com [NC]
RewriteRule \.(jpg|jpeg|png|gif)$ – [NC,F,L]
<Files xmlrpc.php>
order deny,allow
deny from all
Allow from 122.248.245.244/32
Allow from 54.217.201.243/32
Allow from 54.232.116.4/32
Allow from 192.0.80.0/20
Allow from 192.0.96.0/20
Allow from 192.0.112.0/20
Allow from 195.234.108.0/22
Allow from 192.0.96.202/32
Allow from 192.0.98.138/32
Allow from 192.0.102.71/32
Allow from 192.0.102.95/32
</Files>
Apparently I fixed my back office issue by unchecking the option WPML > Settings > Allow login page translation (see the attached screen capture)
But I got a new big problem on the Front End: my images don't show up and instead I only see their Alt Text (see the attached screen capture)
I've highlighted an image that has this code in my Homepage:
<img data-tf-not-load="1" decoding="async" src="hidden link" class="wp-post-image wp-image-2698" title="Derm-nix__9988" alt="Derm-nix__9988" srcset="hidden link 1920w, hidden link 150w, hidden link 300w, hidden link 225w, hidden link 900w, hidden link 768w, hidden link 1152w, hidden link 1536w" sizes="(max-width: 1920px) 100vw, 1920px" width="1920" height="2560">
So in theory it's hosted here, right? hidden link
And that URL works fine to me, so why isn't it loading on the website?
Please try to follow some steps below and see if it helps:
1. Enable a minimal environment:
- Deactivate all non-WPML plugins
- Switch to a standard theme of WordPress
❌ IMPORTANT: Please backup your database and website before proceeding ❌
2. Make a small change to the page title/content > save changes > update the translation.
I also need more information on your site by sharing the debug info. If you don’t know how to share the debug info, please follow this article https://wpml.org/faq/provide-debug-information-faster-support/
Your next reply is enabled to share the debug info.
Look forward to your reply.
Thanks
The topic ‘[Closed] I get a 404 error with I try to log into wp-admin’ is closed to new replies.