In general option in wordpress, I have changed the wordpress directory to be on http://mywebsite.com but wordpress dashboard is still in htpps causing mixed content warning and images in dashboard are not displayed even after disabling mixed content filter on firefox.
I this is my .htaccess file
Options +FollowSymlinks
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{SERVER_PORT} ^443$
RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1 [R=301,L]
# BEGIN WordPress
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
</IfModule>
What is the possible solution to overcome this problem.
There is a setting in your wp-config.php file that directs all admin traffic over https. You would need to disable that option for your admin panel to work correctly.
FORCE_SSL_ADMIN needs to be false:
define('FORCE_SSL_ADMIN', false);
solves the issue. See relevant WordPress Codex pages:
http://codex.wordpress.org/Administration_Over_SSL
http://codex.wordpress.org/Function_Reference/force_ssl_admin
Related
I am encountering a problem with my wordpress page. I am using the sporty theme and have setup the page. Now I would like to activate SSL.
What have I done:
I changed
siteurl and home in the wp-options table
I used the DB Migrate plugin to modify all links.
I set up my htaccess file like this
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{ENV:HTTPS} !=on
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
I am still stuck with a redirect to the base url which start with http. Even if I remove the htaccess this happens, so i doubt the htaccess is the problem.
I also tried adding
define('WP_HOME','https://tc-eislingen.de');
define('WP_SITEURL','https://tc-eislingen.de');
to the wp-config.php but the nasty redirect to http stays.
Is there a redirect in the template I am missing?
Update
Why the downvote? I followed all the rules? Is there anything wrong why my quesiton?
you shouldn't be changing .htaccess file code for it. Just change the urls in database and install
Really Simple SSL
and activate necessary settings in it. You must change http: url you placed manually into https though.
I have a wordpress site. I didn't faced any issue regarding the url when I configured in local. After the hosting the pages except homepage return 404 error. When I changed the permalink settings to plain url , the issue disappears. What will be reason ? I updated htacess but still the issue exists
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Please check your rewrite rules in apache.
If rewrite rules are not enabled in apache server then this issue occurs.
I have an SSL through Cloudflare and it only works on my main site, and not the wordpress part.
regular site:
http://championsdrivingschools.com
wordpress
http://championsdrivingschools.com/checkout/
If I do force SSL on the site it makes the wordpress look all it style and everything and it looks just like text
If you have added static URL in the pages without https then Url will not show green sign in the browser. please check static URL of any static assets and set below setting to make all pages with https.
Step 1: In your WordPress administrator dashboard, go to Settings -> General and change both URLs to have https:// rather than http://.
Step 2: These site asset files can easily be corrected by fixing the rewrite rules in your .htaccess file found at the root of your WordPress application.
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
To get started, head to WooCommerce > Settings.
I want to go from HTTP to HTTPS on my wordpress site. So far, I have done the following:
Changed the siteurl and home addresses to https://www.example.com
In wp-config.php file added
define('FORCE_SSL_ADMIN', true);
define('FORCE_SSL_LOGIN', true); // I read this was deprecated, but I was desperate
/* That's all, stop editing! Happy blogging. */
In .htaccess I have:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTPS} !=on
RewriteRule ^https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
So now I face two problems:
1. css styles do not load
2. I cannot access wp-admin panel and I have error 401 The page isn’t redirecting properly
I`ve tried a lot of things and finally I really need your help, thanks!!!
EDIT!!!!
I removed the lines
define('FORCE_SSL_ADMIN', true);
define('FORCE_SSL_LOGIN', true);
and now it finds its way to the admin panel, but still the style files are not loaded.
Just use a Wordpress Plugin, it will save you time.
I use personally this one:
https://wordpress.org/plugins/wp-force-ssl/
Why is this sample domain www.example.com/about-us is not working even though I activate the .htaccess
AddHandler php-stable .php
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
also when you navigate also this link www.example.com/index.php/about-us it will redirect you to this www.example.com/about-us which is not working but when you navigate this www.example.com/Index.php/about-us that's the time the url is working. Please help. It host on godaddy
Seems like you are having a mod_rewrite issue with your hosting. You can create a .php page on your server lets call it phpinfo.php and write the following code in it
<?php
phpinfo();
?>
Open this page in browser and look for mod_rewrite setting. It needs to be on for permalink to work.
Now, go to your WP Admin Panel -> Settings -> Permalink and choose /post_name/ Wordpress will automatically write in .htaccess file (provided it can access it).
If mod_rewrite is not enabled on your server, there is no way other than contacting your hosting provider to enable it. It is enabled by all hosting providers still you have to cross check using phpinfo.
Following is a perfectly valid .htaccess file for WordPress
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Also ensure that apache.conf is configured to be overridden by .htaccess file. Apache settings like AllowOverride none; ensure .htaccess is not honored.
As per the query you explained, I would like to suggest that you
go to WP Admin Panel -> Settings -> Permalink
Then select the radio button in front of /post_name/
Then go to WP Admin Panel -> Appearance -> Menus
Now check that you have all pages used in Menus, or is there any custom link you have used?
Also check your .htaccess
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php
</IfModule>
# END WordPress