Viewing 15 replies - 16 through 30 (of 31 total)
  • 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 WpFastestCache

    2) change checkInternal function with belowe code in css-utilites.php.

    public function checkInternal($link){
    			$contentUrl = str_replace(array("https://www.", "https://", "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.

    Thread Starter Cartographer

    (@cartographer)

    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.

    Thread Starter Cartographer

    (@cartographer)

    Selim I just saw your message. I will take a look!

    Plugin Author Emre Vona

    (@emrevona)

    ?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.

    Plugin Author Emre Vona

    (@emrevona)

    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.

    Thread Starter Cartographer

    (@cartographer)

    Unfortunatelly, no luck yet.

    Plugin Author Emre Vona

    (@emrevona)

    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.

    Plugin Author Emre Vona

    (@emrevona)

    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 https://? 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 ^(.*)$ https://%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 ^(.*)$ https://%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?

Viewing 15 replies - 16 through 30 (of 31 total)
  • The topic ‘WordPress https site’ is closed to new replies.