0
Welcome Guest! Login
0 items Join Now

ROCKETTHEME IS CLOSING ON JUNE 30, 2025. As a thank-you to our community, enjoy 50% off all themes with the promo code THANKYOU before we shut down. Read our Farewell Blog Post for more details.

template not loading with http://www

    • vonee's Avatar
    • vonee
    • Sr. Rocketeer
    • Posts: 187
    • Thanks: 1

    template not loading with http://www

    Posted 13 years 8 months ago
    • I have a site whistlingfrogcafe.com which loads fine but when it is www.whistlingfrogcafe.com the template doesn't load.
      Where do I go to fix this? The tech support people said it was not server related and it was in the joomla installation.

      Thanks!
    • Andy Miller's Avatar
    • Andy Miller
    • Preeminent Rocketeer
    • Posts: 9919
    • Thanks: 96
    • Web Kahuna

    Re: template not loading with http://www

    Posted 13 years 8 months ago
    • what does it do when you change the template to the joomla default?
    • vonee's Avatar
    • vonee
    • Sr. Rocketeer
    • Posts: 187
    • Thanks: 1

    Re: template not loading with http://www

    Posted 13 years 8 months ago
    • Hi Andy

      Tried that and same problem.

      What I am wondering is if I did a 301 redirect? If I did the below do I necessarily have to change to SEF?

      If I enabled apache rewrite and changed the htaccess.tx to .htaccess using the following do you think that may help?

      ##
      # @version $Id: htaccess.txt 14401 2010-01-26 14:10:00Z louis $
      # @package Joomla
      # @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
      # @license www.gnu.org/copyleft/gpl.html GNU/GPL
      # Joomla! is Free Software
      ##


      #####################################################
      # READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE
      #
      # The line just below this section: 'Options +FollowSymLinks' may cause problems
      # with some server configurations. It is required for use of mod_rewrite, but may already
      # be set by your server administrator in a way that dissallows changing it in
      # your .htaccess file. If using it causes your server to error out, comment it out (add # to
      # beginning of line), reload your site in your browser and test your sef url's. If they work,
      # it has been set by your server administrator and you do not need it set here.
      #
      #####################################################

      ## Can be commented out if causes errors, see notes above.
      #Options +FollowSymLinks

      #
      # mod_rewrite in use

      RewriteEngine On

      RewriteCond %{HTTP_HOST} ^whistlingfrogcafe.com
      RewriteRule (.*) whistlingfrogcafe.com/$1 [R=301,L]

      ########## Begin - Rewrite rules to block out some common exploits
      ## If you experience problems on your site block out the operations listed below
      ## This attempts to block the most common type of exploit `attempts` to Joomla!
      #
      ## Deny access to extension xml files (uncomment out to activate)
      #<Files ~ "\.xml$">
      #Order allow,deny
      #Deny from all
      #Satisfy all
      #</Files>
      ## End of deny access to extension xml files
      RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
      # Block out any script trying to base64_encode crap to send via URL
      RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
      # Block out any script that includes a <script> tag in URL
      RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
      # Block out any script trying to set a PHP GLOBALS variable via URL
      RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
      # Block out any script trying to modify a _REQUEST variable via URL
      RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
      # Send all blocked request to homepage with 403 Forbidden error!
      RewriteRule ^(.*)$ index.php [F,L]
      #
      ########## End - Rewrite rules to block out some common exploits

      # Uncomment following line if your webserver's URL
      # is not directly related to physical file paths.
      # Update Your Joomla! Directory (just / for root)

      RewriteBase /


      ########## Begin - Joomla! core SEF Section
      #
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteCond %{REQUEST_URI} !^/index.php
      RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$ [NC]
      RewriteRule (.*) index.php
      RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
      #
      ########## End - Joomla! core SEF Section
      Deny from 150.70.64.196
      Deny from 95.108.244.251
      Deny from 196.64.70.150
      Deny from 220.181.111.85
      Deny from 220.181.111.86
      Deny from 123.125.114.144
      Deny from 208.115.111.66
      Deny from 208.115.111.244
      Deny from 87.250.254.242
    • vonee's Avatar
    • vonee
    • Sr. Rocketeer
    • Posts: 187
    • Thanks: 1

    Re: template not loading with http://www

    Posted 13 years 8 months ago
    • Foot note:

      I added
      RewriteCond %{HTTP_HOST} ^whistlingfrogcafe.com
      RewriteRule (.*) whistlingfrogcafe.com/$1 [R=301,L]

      to the htaccess.txt and it seems to have solved the problem.

Time to create page: 0.077 seconds