Page 3 of 3 FirstFirst 123
Results 21 to 21 of 21

Thread: How to set my domain to www ?

  1. #21
    Rookie mario92's Avatar
    Join Date
    Oct 2011
    Location
    Poland
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by mr_green View Post
    When you found it
    try that code if is working
    PHP Code:

    RewriteEngine On
    RewriteCond 
    %{HTTP_HOST} ^domaine.com$
    RewriteCond %{SERVER_PORT} ^80$
    RewriteRule (.*)$ http://www.domaine.com/$1 [R=301,L] 

    AddType application/x-httpd-php5 .php
    AddType application
    /x-httpd-php5 .html .htm
    AddType application
    /x-httpd-php5 .js

    # 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

    <FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)(\.gz)$">
    Header set Expires "Thu, 15 Apr 2015 20:00:00 GMT"
    </FilesMatch>

    <
    FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)(\.gz)?$">
    Header unset ETag
    FileETag None
    </FilesMatch>

    <
    FilesMatch "\.(avi|mov|mp3|wmv|wav)$">
    ExpiresDefault A29030400
    Header append Cache
    -Control "public"
    </FilesMatch
    reload you page if you get a 500 internal server --- >delete block by block this code

    PHP Code:
    AddType application/x-httpd-php5 .php
    AddType application
    /x-httpd-php5 .html .htm
    AddType application
    /x-httpd-php5 .js 
    this is the most important code force php5 compress .html compress.js
    if is working for you can try to
    PHP Code:
    AddType application/x-httpd-php5 .css 
    to compress css

    working for my host but i know some server need a different config
    You must compress .js .css is mandatory
    ok I've tried this code on my side and I got this information :
    Warning: Cannot modify header information - headers already sent by (output started at /home/ql126469/public_html/gamejobs.pl/wp-content/themes/jobroller/includes/theme-functions.php:1001) in /home/ql126469/public_html/gamejobs.pl/wp-includes/pluggable.php on line 934
    Can somebody help me?

Page 3 of 3 FirstFirst 123

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: December 30th, 2010, 04:17 PM