WordPress https site
-
Hi,
First of all, congratulations for your work!
I would like to point out a problem.
I use https as my default wordpress address (Settings – General). Before using your plugin everyone who visited my website using http://www.example.com was redirected to https://www.example.com.
After using the WP Fastest Cache the redirection stopped. Maybe it has something to do with changes in .htaccess.
I would really like your help as I want to use your plugin which is great!
Thanks in advance
-
Hi cartographer .
Maybe directions at the belove solve your problem.1) write this to your .htaccess file
# BEGIN GzipWpFastestCache <IfModule mod_deflate.c> AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/xml AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE application/xml AddOutputFilterByType DEFLATE application/xhtml+xml AddOutputFilterByType DEFLATE application/rss+xml AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/x-javascript </IfModule> # END GzipWpFastestCache # BEGIN WpFastestCache <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} RewriteBase / RewriteCond %{REQUEST_METHOD} !POST RewriteCond %{QUERY_STRING} !.*=.* RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$ RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\"]+ [NC] RewriteCond %{HTTP:Profile} !^[a-z0-9\"]+ [NC] RewriteCond %{HTTPS} !on RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/all/$1/index.html -f RewriteRule ^(.*) "/wp-content/cache/all/$1/index.html" [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WpFastestCache2) change checkInternal function with belowe code in css-utilites.php.
public function checkInternal($link){ $contentUrl = str_replace(array("http://www.", "http://", "https://", "https://www."), "", content_url()); $httpHost = str_replace("www.", "", $_SERVER["HTTP_HOST"]); if(preg_match("/href=[\"\'](.*?)[\"\']/", $link, $href)){ if(strpos($href[1], $httpHost)){ if(strpos($href[1], $contentUrl."/themes") || strpos($href[1], $contentUrl."/plugins")) { return $href[1]; } } } return false; }[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
After this point i want to continue with turkish. make it easy.
Emre programın çok güzel gerçekten. 7.8.8 sürümünü kullanıyorum ve css konusunda sıkıntıları vardı biraz. Css urleleri ve pathları ile ilgili sıkıntıları yeniden yazarak çözdüm. Ama asıl sorun css-utilities.php deki sıkıştırma işlevlerinin kullandığım versiyonda işe yaramaması. Bu son sürümde çözüldümü.Ayrıca bu sıkıştırlan css dosyalarını eğer <!– [if IE]–> gibi etiketler içinde değilse tek bir dosya halinde tutmak çok daha yararlı olacaktır.htaccess dosyasında yapılacak değişiklikler kullanıcların sistemine bağlı olduğu için, rewritebase gibi, yönetim panelinde bu tarz şeyleri parametrik olarak istemek yararlı olacaktır.
Eline sağlık kolay gelsin.Hi Emre,
Where exactly should I copy these lines?
I’m sorry but these are English language community forums, so please use English or provide an English translation. Alternatively, use a WP support forum in your language.
Selim I just saw your message. I will take a look!
çok tşk ederim 🙂 css sıkıştırma olayında ben yanlış bir şey yapmışım
$cssContent = $this->_process($css);
$cssContent = $this->fixPathsInCssContent($css);böyle yapmıştım. $cssContent yerine $css’yi gönderiyordum fonksiyona ama düzelttim. v 0.7.8.9’da sorunsuz çalışıyor.
eğer <!– [if IE]–> gibi etiketler içinde değilse tek bir dosya halinde tutmak çok daha yararlı olacaktır
ben de bunu kolayca yapabilmek için “minify css” fonksiyonunu class haline getirdim. planlarım arasında yer alıyor. hatta ilk ekleceğim yenilik “combine css” olacak.
Hi Cartographer,
add this line – RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]
after – RewriteBase /
got it?
I’m sorry but these are English language community forums, so please use English or provide an English translation. Alternatively, use a WP support forum in your language.
Unfortunatelly, no luck yet.
what does it mean? Cannot you change or didn’t it affect?
Sorry esmi.
But i know a little english and WP support forum in our language is useless in this case.
i ‘ll try to be carefull about your warnings.
Thanks.Hi Cartographer
try to change this line
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
with
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L]and have a look access and error log in your server.
Emre i look forward to new versiyon for css combine.
Take it easy.I have implemented for ssl
I have an issue with multisite where ONLY ONE site is ssl. When I activated at that site, it has forced all sites in multisite to ssl (very bad). How can I define only that site for ssl and the rest remain http://? This is a rather urgent fix.
Here is the top of htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
AddDefaultCharset UTF-8
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteCond %{REQUEST_URI} !^/wp-login.php
RewriteCond %{REQUEST_URI} !^/wp-admin
RewriteCond %{REQUEST_URI} !^/wp-content
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_HOST} !^www\.
RewriteCond %{REQUEST_URI} !^/wp-login.php
RewriteCond %{REQUEST_URI} !^/wp-admin
RewriteCond %{REQUEST_URI} !^/wp-content
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
RewriteCond %{REQUEST_METHOD} !POST
RewriteCond %{QUERY_STRING} !.*=.*
RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\”]+ [NC]
RewriteCond %{HTTP:Profile} !^[a-z0-9\”]+ [NC]
RewriteCond /home/codeless/public_html/codelessme.com/wp-content/cache/all/$1/index.html -f
RewriteRule ^(.*) “/wp-content/cache/all/$1/index.html” [L]
</IfModule>Think I resolved the issue.
Does this look correct?
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
AddDefaultCharset UTF-8
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteCond %{REQUEST_URI} !^/wp-login.php
RewriteCond %{REQUEST_URI} !^/wp-admin
RewriteCond %{REQUEST_URI} !^/wp-content
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
RewriteCond %{HTTP_HOST} !^www\.
RewriteCond %{REQUEST_URI} !^/wp-login.php
RewriteCond %{REQUEST_URI} !^/wp-admin
RewriteCond %{REQUEST_URI} !^/wp-content
RewriteCond %{REQUEST_METHOD} !POST
RewriteCond %{QUERY_STRING} !.*=.*
RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\”]+ [NC]
RewriteCond %{HTTP:Profile} !^[a-z0-9\”]+ [NC]
RewriteCond /home/codeless/public_html/codelessme.com/wp-content/cache/all/$1/index.html -f
RewriteRule ^(.*) “/wp-content/cache/all/$1/index.html” [L]
</IfModule>So now – my only question remaining is –
How do we write htaccess to include https and http?
The topic ‘WordPress https site’ is closed to new replies.