Kijag Infosystem Pvt. Ltd.
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [MesoColumn] Theme messed up after WP update to 4.5.1That is perfect.
Forum: Themes and Templates
In reply to: [MesoColumn] Theme messed up after WP update to 4.5.1I have added Autoset Featured Image then it is choosing the featured image automatically.
Secondly, you can see that excerpt text is missing in the home page which used to come earlier.
Forum: Plugins
In reply to: [Fuse Social Floating Sidebar] How to Add Yelp in the iconsThank you so much, it worked. 🙂
Forum: Plugins
In reply to: [Fuse Social Floating Sidebar] How to Add Yelp in the iconsNo, there is no success. Probably some thing has to be done even in FontAwesome ttf and otf files also.
It is just showing Blank red dot
Guess what, I dig into google and modified my .htaccess as below and everything is working fine now.
# Deny public access to wp-config.php <Files wp-config.php> Order allow,deny Deny from all </Files> <IfModule mod_rewrite.c> RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.demolivesoft.com/$1 [R,L] </IfModule> RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] RewriteBase / RewriteRule ^index\.php$ - [L] # add a trailing slash to /wp-admin RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L] RewriteRule . index.php [L] Options All -IndexesIs it the right way?
Wow guess what I did it. I don’t know whether it is the correct way or not but I copied everything from Port 443 and added it into port 80 and now my website is working with https://
I modified it as per below code.
<IfModule mod_ssl.c> <VirtualHost *:80> ServerAdmin info@demolivesoft.com ServerName demolivesoft.com ServerAlias www.demolivesoft.com DocumentRoot /var/www/html <Directory /var/www/html> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory> ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined SSLEngine on SSLCertificateFile /etc/apache2/ssl/apache.crt SSLCertificateKeyFile /etc/apache2/ssl/apache.key <FilesMatch "\.(cgi|shtml|phtml|php)$"> SSLOptions +StdEnvVars </FilesMatch> <Directory /usr/lib/cgi-bin> SSLOptions +StdEnvVars </Directory> BrowserMatch "MSIE [2-6]" \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0 BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown </VirtualHost> <VirtualHost _default_:443> ServerAdmin info@demolivesoft.com ServerName demolivesoft.com ServerAlias www.demolivesoft.com DocumentRoot /var/www/html <Directory /var/www/html> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory> ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined SSLEngine on SSLCertificateFile /etc/apache2/ssl/apache.crt SSLCertificateKeyFile /etc/apache2/ssl/apache.key <FilesMatch "\.(cgi|shtml|phtml|php)$"> SSLOptions +StdEnvVars </FilesMatch> <Directory /usr/lib/cgi-bin> SSLOptions +StdEnvVars </Directory> BrowserMatch "MSIE [2-6]" \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0 BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown </VirtualHost> </IfModule> # vim: syntax=apache ts=4 sw=4 sts=4 sr noetNow only issue is all the pages are working with http:// also. How can I let them work only with https:// ? so that http:// should not work or redirect to https:// everytime.
Hi, thank you so much for your help. I followed your instructions and now all the links are passing through https:// and I am unable to open any page is http (thats fine if it started working) :).
But now all pages are still 404 not found.
Below is my updated htaccess
# Deny public access to wp-config.php <Files wp-config.php> Order allow,deny Deny from all </Files> <IfModule mod_rewrite.c> RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.demolivesoft.com/$1 [R,L] </IfModule> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] # add a trailing slash to /wp-admin RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L] RewriteRule . index.php [L] Options All -IndexesBelow is my SSL Configuration in default-ssl.conf inside apache2/sites-available
<IfModule mod_ssl.c> <VirtualHost *:80> <Directory /var/www/html> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory> </VirtualHost> <VirtualHost _default_:443> ServerAdmin info@demolivesoft.com ServerName demolivesoft.com ServerAlias www.demolivesoft.com DocumentRoot /var/www/html <Directory /var/www/html> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory> ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined SSLEngine on SSLCertificateFile /etc/apache2/ssl/apache.crt SSLCertificateKeyFile /etc/apache2/ssl/apache.key <FilesMatch "\.(cgi|shtml|phtml|php)$"> SSLOptions +StdEnvVars </FilesMatch> <Directory /usr/lib/cgi-bin> SSLOptions +StdEnvVars </Directory> BrowserMatch "MSIE [2-6]" \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0 BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown </VirtualHost> </IfModule> # vim: syntax=apache ts=4 sw=4 sts=4 sr noetAnd my default Server Configuration in 000-default.conf inside apache2/sites-available
<VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /var/www/html <Directory /var/www/html> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory> ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost>I know it must be some small thing which I am missing. Can you please guide me what can be that?
Hi,
This is the URL which you can check https://www.demolivesoft.com/
Then you can click on any link and it wont work properly with https. For ex:
https://www.demolivesoft.com/how-it-works/
But those are working fine with http. Am I missing something??
Below is my .htaccess
# Deny public access to wp-config.php <Files wp-config.php> Order allow,deny Deny from all </Files> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] # add a trailing slash to /wp-admin RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L] RewriteRule . index.php [L] Options All -Indexes <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.demolivesoft.com/$1 [R,L] </IfModule>I followed the below steps
1. Enable the module by typing:
sudo a2enmod ssl
2. Create a Self-Signed SSL Certificate
sudo mkdir /etc/apache2/ssl
sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/apache2/ssl/apache.key -out /etc/apache2/ssl/apache.crt3. Configure Apache to Use SSL
sudo nano /etc/apache2/sites-available/default-ssl.conf
IfModule mod_ssl.c>
<VirtualHost _default_:443>
ServerAdmin admin@{domainname}.com
ServerName {domainname}.com
ServerAlias www.{domainname}.com
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/apache.crt
SSLCertificateKeyFile /etc/apache2/ssl/apache.key
<FilesMatch “\.(cgi|shtml|phtml|php)$”>
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /usr/lib/cgi-bin>
SSLOptions +StdEnvVars
</Directory>
BrowserMatch “MSIE [2-6]” \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
BrowserMatch “MSIE [17-9]” ssl-unclean-shutdown
</VirtualHost>
</IfModule>4. Activate the SSL Virtual Host
sudo a2ensite default-ssl.conf
sudo service apache2 restart
After following the above procedure I tested my link with https://{domainname}.com and it is working fine fore home page, but whenever I open any page https://{domainname}.com/{anything} it is showing 404
“
Not FoundThe requested URL /{anything}/ was not found on this server.
Apache/2.4.7 (Ubuntu) Server at {mysiteurl} Port 443
“
Please confirm any additional configuration has to be done in Apache?