Problems with .htaccess (404 Not found Errors after clicking on tags in Blog Posts)

21 replies
Hi there! Recently we're struggling with a simple error which has it's origin probably somewhere in .htaccess file.

The problem occurs when we click on a tag inside our blog post (as all blog section runs on Wordpress CMS). Clicking on a tag returns a popular 404 not found error.

Permalinks are strictly associated with .htaccess file as they write directives to it. We're running on Apache so mod_rewrite is turned on.

Popular methods to fix this are re-saving the permalinks or creating a different structure for them. Unfortunately none of these methods helped at all. Either we had error 403 Forbidden or 503 (if i remember well) - internal server error.

Google Webmaster tools are showing crawling errors which we would like to avoid as we believe that they influence Google to not list us in SERP's for any other keywords than just those ones that are associated with our domain name. I know that it takes time, especially that the website itself is sitting on server just since 1 month. However, we've added fresh content (long articles) and still have no results. We do believe that crawling errors have to say a lot about it as theoretically Google may think that the website will provide low user experience.

To not make the thread too messy I have pasted the .htaccess in
#7682543 - Pastie

Either there are missing directives in it or there are ones that override badly another ones.

Sorry that the directives are not highlighted, .htaccess syntax is not supported by pastie.org but they should be pretty easy to understand .

For any help - THANKS!

C.
#404 #blog #clicking #errors #found #htaccess #posts #problems #tags #tags 404 wordpress #wordpress
  • Profile picture of the author Michael71
    What a mess...

    and I do not see any htaccess rules for the permalinks.

    What is <Files #FILE GOES HERE#.php> ?

    Code:
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^WWW.EXAMPLE.com$ [OR]
    RewriteCond %{HTTP_HOST} ^WWW.EXAMPLE.com$
    RewriteCond %{REQUEST_URI} !^/example-directory/
    RewriteRule (.*) /example-directory/$1
    What is this? there is no difference between the two http host lines.

    Besides that, if you write in capital letter you should add a NC, else noone using lowercase could ever access.

    What is the URL of the site?
    Signature

    HTML/CSS/jQuery/ZURB Foundation/Twitter Bootstrap/Wordpress/Frontend Performance Optimizing
    ---
    Need HTML/CSS help? Skype: microcosmic - Test Your Responsive Design - InternetCookies.eu

    {{ DiscussionBoard.errors[7997536].message }}
  • Profile picture of the author Craig Allen
    Boss's request to hide the vulnerable file directories (anyways everyone knows what they are...). Anyways

    The URL is Cheap & Professional Company Logo Design by Logo Experts

    rules for permalinks had to be disabled if I remember well as they were returning 503 internal server error
    Signature
    You Can't Miss This!

    Business card included, Unlimited Revisions, rich portfolio.
    Please help us grow simply by clicking the link above
    {{ DiscussionBoard.errors[7997552].message }}
  • Profile picture of the author Michael71
    Define vulneralbe file directories, please.

    Those are, at least with latest WP, "protected" anyway.

    Code:
    Uncaught ReferenceError: jQuery is not defined inexpensivelogo.com:482
    Uncaught ReferenceError: jQuery is not defined inexpensivelogo.com:891
    Uncaught ReferenceError: FB is not defined inexpensivelogo.com:971
    GET http://inexpensivelogo.com/wp-content/graphics/logo.png 404 (Not Found)
    Now this is not really good
    Signature

    HTML/CSS/jQuery/ZURB Foundation/Twitter Bootstrap/Wordpress/Frontend Performance Optimizing
    ---
    Need HTML/CSS help? Skype: microcosmic - Test Your Responsive Design - InternetCookies.eu

    {{ DiscussionBoard.errors[7997566].message }}
    • Profile picture of the author Craig Allen
      Originally Posted by Michael71 View Post

      Define vulneralbe file directories, please.

      Those are, at least with latest WP, "protected" anyway.

      Code:
      Uncaught ReferenceError: jQuery is not defined inexpensivelogo.com:482
      Uncaught ReferenceError: jQuery is not defined inexpensivelogo.com:891
      Uncaught ReferenceError: FB is not defined inexpensivelogo.com:971
      GET http://inexpensivelogo.com/wp-content/graphics/logo.png 404 (Not Found)
      Now this is not really good
      It was not me who wrote that .htaccess but I have a feeling that boss won't be happy.

      Here's the un-edited htaccess

      #7683122 - Pastie

      Thanks for the help!

      EDIT: Yes I've run w3c markup validator and saw the mess already.
      Signature
      You Can't Miss This!

      Business card included, Unlimited Revisions, rich portfolio.
      Please help us grow simply by clicking the link above
      {{ DiscussionBoard.errors[7997607].message }}
      • Profile picture of the author Michael71
        Those errors (404 and jQuery not defined) have nothing to do with the .htaccess file.

        They are coding errors.

        You can not reference to something if you load it at the bottom but calling it before it is loaded.

        Browsers still read (and load) from top to bottom.

        Originally Posted by Craig Allen View Post

        It was not me who wrote that .htaccess but I have a feeling that boss won't be happy.

        Here's the un-edited htaccess

        #7683122 - Pastie

        Thanks for the help!

        EDIT: Yes I've run w3c markup validator and saw the mess already.
        Signature

        HTML/CSS/jQuery/ZURB Foundation/Twitter Bootstrap/Wordpress/Frontend Performance Optimizing
        ---
        Need HTML/CSS help? Skype: microcosmic - Test Your Responsive Design - InternetCookies.eu

        {{ DiscussionBoard.errors[7997656].message }}
        • Profile picture of the author Craig Allen
          jQuery callouts were moved to the footer according to tips provided by Google Page Speed insights.

          At least it's not an .htaccess file that is causing this. I have sent you a PM and provided with a little bit more information but that's all I have.
          Signature
          You Can't Miss This!

          Business card included, Unlimited Revisions, rich portfolio.
          Please help us grow simply by clicking the link above
          {{ DiscussionBoard.errors[7997664].message }}
  • Profile picture of the author Michael71
    Code:
    <script type='text/javascript' src='http://inexpensivelogo.com/inexpensivelogo/wp-includes/js/jquery/jquery.js?ver=1.8.3'></script>
    <script type='text/javascript' src='http://inexpensivelogo.com/inexpensivelogo/wp-content/plugins/attentionGrabber_v1.5/js/attentionGrabber_js.php?ver=3.5.1'></script>
    <script type='text/javascript' src='http://inexpensivelogo.com/inexpensivelogo/wp-content/themes/coolblue/js/modernizr.js?ver=3.5.1'></script>
    <script type='text/javascript' src='http://maps.google.com/maps/api/js?sensor=false&ver=3.5.1'></script>
    <script type='text/javascript' src='http://inexpensivelogo.com/inexpensivelogo/wp-content/themes/coolblue/js/lightbox.js?ver=3.5.1'></script>
    <script type='text/javascript' src='http://inexpensivelogo.com/inexpensivelogo/wp-content/themes/coolblue/js/gmap3.min.js?ver=3.5.1'></script>
    <script type='text/javascript' src='http://inexpensivelogo.com/inexpensivelogo/wp-content/themes/coolblue/js/jquery.easing.1.3.js?ver=3.5.1'></script>
    <script type='text/javascript' src='http://inexpensivelogo.com/inexpensivelogo/wp-content/themes/coolblue/js/functions.js?ver=3.5.1'></script>
    <script type='text/javascript' src='http://inexpensivelogo.com/inexpensivelogo/wp-content/themes/coolblue/js/jquery.tweet.js?ver=3.5.1'></script>
    <script type='text/javascript' src='http://inexpensivelogo.com/inexpensivelogo/wp-content/themes/coolblue/js/easing.js?ver=3.5.1'></script>
    <script type='text/javascript' src='http://inexpensivelogo.com/inexpensivelogo/wp-content/themes/coolblue/js/jquery.ui.totop.js?ver=3.5.1'></script>
    <script type='text/javascript' src='http://inexpensivelogo.com/inexpensivelogo/wp-content/themes/coolblue/js/jquery.cookie.js?ver=3.5.1'></script>
    <script type='text/javascript' src='https://apis.google.com/js/plusone.js?ver=3.5.1'></script>
    <script type='text/javascript' src='https://platform.twitter.com/widgets.js?ver=3.5.1'></script>
    <script type='text/javascript' src='http://inexpensivelogo.com/inexpensivelogo/wp-content/plugins/revslider/rs-plugin/js/jquery.themepunch.plugins.min.js?ver=3.5.1'></script>
    <script type='text/javascript' src='http://inexpensivelogo.com/inexpensivelogo/wp-content/plugins/revslider/rs-plugin/js/jquery.themepunch.revolution.min.js?ver=3.5.1'></script>
    <script type="text/javascript">FB.XFBML.parse();</script><script language="javascript" type="text/javascript">var kpg_cell="N";var kpg_nrci_image="http://inexpensivelogo.com/inexpensivelogo/wp-content/plugins/no-right-click-images-plugin/not.gif";var kpg_nrci_extra="N";var kpg_nrci_drag="Y";</script>
    Uncaught ReferenceError: FB is not defined
    <script language="javascript" type="text/javascript" src="http://inexpensivelogo.com/inexpensivelogo/wp-content/plugins/no-right-click-images-plugin/no-right-click-images.js"></script>
    <div id="attentionGrabberWrap" ><div id="attentionGrabber">Custom Logo Designs starting from 29,99 $ ! <a href="http://inexpensivelogo.com/order-now/" target="_blank" class="link"> [CLICK HERE]</a><span id="closeAttentionGrabber"></span></div><span id="openAttentionGrabber"><span></span></span></div><link rel='stylesheet' id='liketokeepreading-css'  href='http://inexpensivelogo.com/inexpensivelogo/wp-content/plugins/like-to-keep-reading/css/liketokeepreading.css?ver=3.5.1' type='text/css' media='all' />
    <link rel='stylesheet' id='rs-settings-css'  href='http://inexpensivelogo.com/inexpensivelogo/wp-content/plugins/revslider/rs-plugin/css/settings.css?ver=3.5.1' type='text/css' media='all' />
    <link rel='stylesheet' id='rs-captions-css'  href='http://inexpensivelogo.com/inexpensivelogo/wp-content/plugins/revslider/rs-plugin/css/captions.css?ver=3.5.1' type='text/css' media='all' />
    <link rel='stylesheet' id='wooslider-flexslider-css'  href='http://inexpensivelogo.com/inexpensivelogo/wp-content/plugins/wooslider/assets/css/flexslider.css?ver=1.0.1' type='text/css' media='all' />
    <link rel='stylesheet' id='wooslider-common-css'  href='http://inexpensivelogo.com/inexpensivelogo/wp-content/plugins/wooslider/assets/css/style.css?ver=1.0.1' type='text/css' media='all' />
    <script type='text/javascript' src='http://inexpensivelogo.com/inexpensivelogo/wp-content/plugins/wooslider/assets/js/jquery.flexslider-min.js?ver=1.0.0'></script>
    <script type='text/javascript' src='http://inexpensivelogo.com/?wooslider-javascript=load&t=1366420466&ver=1.0.0'></script>
    OMG, I have rarely seen a website with cluttered code like this one.

    This site is

    a. full of errors
    b. not optimized for loading speed at all (NO, WP-Super-Cache does NOT help much)

    [Invalid] Markup Validation of http://inexpensivelogo.com/ - W3C Markup Validator

    If you don't have a clue about HTML you better get someone that has knowledge about HTML. Sorry to say.
    Signature

    HTML/CSS/jQuery/ZURB Foundation/Twitter Bootstrap/Wordpress/Frontend Performance Optimizing
    ---
    Need HTML/CSS help? Skype: microcosmic - Test Your Responsive Design - InternetCookies.eu

    {{ DiscussionBoard.errors[7997586].message }}
  • Profile picture of the author Craig Allen
    To be honest we are a bit confused as if any changes have been made then it means that they were according to what google page speed insights have told us to do (including moving javascript callouts to footer section of our theme). Personally I don't understand how google page speed insights is giving us score from 60-72 and the higher the score the more un-valid is the code in W3C Validator.

    Also, can you give us any hints on how to repair the occuring errors in W3C Validator? I understand that those errors are the only ones that appear on our website?
    Signature
    You Can't Miss This!

    Business card included, Unlimited Revisions, rich portfolio.
    Please help us grow simply by clicking the link above
    {{ DiscussionBoard.errors[7998209].message }}
  • Profile picture of the author psvent
    If you moved JS (jQuery) includes into the footer then you need to make sure jQuery is loaded before using it in the body (before jQuery is loaded).

    You have this in the body:

    Code:
    var tpj=jQuery;
    ...you need to wrap all the code using jQuery into a block like this:

    Code:
    $(document).ready(function(){
    ...
    var tpj=jQuery;
    ...
    });
    But instead of moving stuff around I would first try W3 Total Cache or WP Minify to compress and minify those JS files. I was able to get a default WP install to 90+ on Google Insights by just using W3 Total Cache + CloudFlare (you can configure it in W3 Total Cache).

    Don't start moving code around just because Google says so as in your case it's breaking the site.
    {{ DiscussionBoard.errors[7999316].message }}
    • Profile picture of the author Craig Allen
      Thanks. My experience with JS is none but will try to catch up on that very quickly (I'm kinda obliged...). About W3 total cache - unfortunately it was causing errors so we had to take it out and replace it with Wp Super Cache. When it comes to minifying - not even one plugin was able to handle that task well. It was combining css's and js's but afterwards all page was un-styled and dynamic things like js slider have stopped working. Any idea on why it happened like that? Thanks

      Craig

      Originally Posted by psvent View Post

      If you moved JS (jQuery) includes into the footer then you need to make sure jQuery is loaded before using it in the body (before jQuery is loaded).

      You have this in the body:

      Code:
      var tpj=jQuery;
      ...you need to wrap all the code using jQuery into a block like this:

      Code:
      $(document).ready(function(){
      ...
      var tpj=jQuery;
      ...
      });
      But instead of moving stuff around I would first try W3 Total Cache or WP Minify to compress and minify those JS files. I was able to get a default WP install to 90+ on Google Insights by just using W3 Total Cache + CloudFlare (you can configure it in W3 Total Cache).

      Don't start moving code around just because Google says so as in your case it's breaking the site.
      Signature
      You Can't Miss This!

      Business card included, Unlimited Revisions, rich portfolio.
      Please help us grow simply by clicking the link above
      {{ DiscussionBoard.errors[7999641].message }}
      • Profile picture of the author psvent
        Hm, did you try to use WP Minify? I guess it also depends on which theme you are using and more importantly if it's coded well.

        If you use WP Minify make sure "wp-content/plugins/wp-minify/cache" is writable by the web server (try using chmod 777).

        Also I would install WP Minify and first exclude ALL css and js files (you can do that via settings) and then trial & error and add css's one by one and and then the same procedure for js files.

        I don't know the exact circumstances but maybe it would be wise to hire a WP expert to help you with the installation and configuration. Some tasks are not that trivial do to if you don't have any or you have very little experience with HTML/JS/PHP (WordPress).

        But what I would advise is to start from scratch meaning that you remove any plugins that you installed for improving performance and revert the theme/templates to the original version (before you moved code around) and then do the changes one-by-one.

        But again if you are not comfortable to do these changes you should really go with hiring someone that knows how it's done because you might frankenstein something together but you won't know what you did and how it works and that can cause problems in the future.

        Hope that helps!
        {{ DiscussionBoard.errors[7999681].message }}
        • Profile picture of the author Craig Allen
          Yes. Wp Minify has been used previously and several other simillar plugins (of course not at the same time). They caused page to appear as rough html or just partially unstyled html.

          There's nothing particular and unique in our theme. It was made just like other themes avaible everywhere.

          I am pretty much wondering how it was possible that code calls some scripts twice (in a row). Maybe some old and already uninstalled plugins have caused these changes cause I've asked our crew and no one have made any changes. They are designers, not coders...

          I think the biggest problem is that we don't necessarily understand where exactly in code the problem occurs (As W3C Validation tool shows it in very general way).Also the meaning of some 'explanations' of errors in W3C Validation tool and how to repair them is not necessarily clear for us.

          I'm the only guy in our team that was looking forward to learn html5 and css3 as others are just overpacked with design work and they are totally not a code heads. However, even though I was trying to learn it through w3c schools and some youtube vids, I'm unable to 1,2,3 presto and know exactly what to do and where to do it when a problem occurs. I believe it will come with time and experience.

          I really apprecieate the answers provided by Michael71 but I feel that they have been written with the usage of environmental cant and in too generous way. I've only understood that in some parts of the code scripts are being called twice + they are being called out from the website's server resources whereas they could have been loaded with the help of google servers (some javascript libraries I believe). Also I've understood from it that well... the situation is pretty bad.

          But let's not panic, hiring someone would be a good idea but both our team and boss himself are not trustful enough to do so after few disappointing persons who called themselves 'experts' (typical cargo cult programming) but couldn't handle the most simple tasks.

          My only request - Can you provide me with the resources with which I can begin repairing all this mess?

          Originally Posted by psvent View Post

          Hm, did you try to use WP Minify? I guess it also depends on which theme you are using and more importantly if it's coded well.

          If you use WP Minify make sure "wp-content/plugins/wp-minify/cache" is writable by the web server (try using chmod 777).

          Also I would install WP Minify and first exclude ALL css and js files (you can do that via settings) and then trial & error and add css's one by one and and then the same procedure for js files.

          I don't know the exact circumstances but maybe it would be wise to hire a WP expert to help you with the installation and configuration. Some tasks are not that trivial do to if you don't have any or you have very little experience with HTML/JS/PHP (WordPress).

          But what I would advise is to start from scratch meaning that you remove any plugins that you installed for improving performance and revert the theme/templates to the original version (before you moved code around) and then do the changes one-by-one.

          But again if you are not comfortable to do these changes you should really go with hiring someone that knows how it's done because you might frankenstein something together but you won't know what you did and how it works and that can cause problems in the future.

          Hope that helps!
          Signature
          You Can't Miss This!

          Business card included, Unlimited Revisions, rich portfolio.
          Please help us grow simply by clicking the link above
          {{ DiscussionBoard.errors[8000285].message }}
  • Profile picture of the author psvent
    Also try the "Wp htaccess Control" plugin and specifically enable mod_gzip and mod_deflate under "htaccess Suggestions" but it depends on your server setup if this will work. This will also cover at least two point from Google Insights suggestions.

    Alternatively you can add something like this to .htaccess manually:

    Code:
    # WPhtC: Setting mod_gzip
    <ifModule mod_gzip.c>
    mod_gzip_on Yes
    mod_gzip_dechunk Yes
    mod_gzip_item_include file .(html?|txt|css|js|php|pl)$
    mod_gzip_item_include handler ^cgi-script$
    mod_gzip_item_include mime ^text/.*
    mod_gzip_item_include mime ^application/x-javascript.*
    mod_gzip_item_exclude mime ^image/.*
    mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
    </ifModule>
    
    # WPhtC: Setting mod_deflate
    <IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml application/xhtml+xml text/javascript text/css application/x-javascript
    BrowserMatch ^Mozilla/4 gzip-only-text/html
    BrowserMatch ^Mozilla/4.0[678] no-gzip
    BrowserMatch bMSIE !no-gzip !gzip-only-text/html
    Header append Vary User-Agent env=!dont-vary
    </IfModule>
    {{ DiscussionBoard.errors[7999322].message }}
  • Profile picture of the author psvent
    OK, I see you've made a child theme which is good! I hope you made all modifications there, right?!

    What I suggest is that you disable any plugins you might have in place (Super Cache) and activate the default/parent theme. Then use the W3C validator + developer console (Chrome) or FireBug (FF) to fix any problems as I suspect some error might come from the content itself especially if you used the HTML editor in WP do add content?

    Once this works make a new child theme and then gradually copy your changes from the current child theme and test all of them with the validators mentioned above. But don't move anything, just apply your styling changes etc.

    After those steps you should have a functioning site.

    Establish a reference point by running Google Insights so you will know how you optimization tweaks are going.

    Then slowly start optimizing stuff. Start with WP Super Cache but really focus on it and go thru all the options and learn/implement them. If you just enable this you should be on a good way.

    Moving script/link tags up and down it not that critical and you should really take care when doing that.
    {{ DiscussionBoard.errors[8000415].message }}
    • Profile picture of the author Craig Allen
      Hi again! Thanks for the information you have provided me with. I wasn't responding on this thread until I've made necessary changes.

      First thing's first, there is a child theme as you've noticed correctly. It will be easier to override some things and add new ones especially to css in the future.

      Another thing - I've enabled mod_deflate. Was scratching my head for a moment as even when it was enabled, both Gtmetrix and Page Speed Insights were indicating that the page is being fetched as uncompressed (some other tools on internet were showing that it's content is compressed). Then I've added:

      <FilesMatch "\.(html|php|txt|xml|js|css)$">
      SetOutputFilter DEFLATE
      </FilesMatch>

      which helped and boosted dramatically the Gtmetrix score as finally they've seen it as compressed.

      Another thing suggested by page speed optimizers was to enable Keep-Alive. I've understood after some minutes what it does with it's benefits and disadventages. I've added the following:

      <ifModule mod_headers.c>
      Header set Connection keep-alive

      Then it started to be tricky as I wanted to change the default timeout and maximum amount of requests because it seemed to be ridicolously too high in my opinion. I've added

      KeepAliveTimeout 5
      MaxKeepAliveRequests 50

      which caused Internal Server Error. Then I've understood that I didn't include

      KeepAlive on

      directive but unfortunately still I was getting Internal Server Errors so I've let it without these three last directives. I would be glad if you would explain to me why it didn't work. Maybe I haven't included one directive needed to make it work?

      Also I have one question regarding Expire Headers directives. Mainly - If I'm able to set ExpiresBy directive for a path? For example Google Page Speed Insights and other simillar online tools are showing a concrete path that should have concrete expiration date. If I would be able to set expiration dates by path then it would be very quick to repair this 'issue'.

      Gtmetrix score as of 25.04.2013
      Page Speed: 84% B
      YSlow: 72%

      However, I don't understand because scores seem to be high but on the right from them there is an information 'Your page generation time is slow
      Find out why and explore possible solutions »' and also
      'Page load time: 16.55s
      Total page size: 752KB
      Total number of requests: 106'

      All those three need to be decreased. Any hints?

      P.s. Is there a list of all possible directives with explanations and possible values somewhere on the internet? I mean about .htaccess file of course.

      Thanks again for the great support!




      Originally Posted by psvent View Post

      OK, I see you've made a child theme which is good! I hope you made all modifications there, right?!

      What I suggest is that you disable any plugins you might have in place (Super Cache) and activate the default/parent theme. Then use the W3C validator + developer console (Chrome) or FireBug (FF) to fix any problems as I suspect some error might come from the content itself especially if you used the HTML editor in WP do add content?

      Once this works make a new child theme and then gradually copy your changes from the current child theme and test all of them with the validators mentioned above. But don't move anything, just apply your styling changes etc.

      After those steps you should have a functioning site.

      Establish a reference point by running Google Insights so you will know how you optimization tweaks are going.

      Then slowly start optimizing stuff. Start with WP Super Cache but really focus on it and go thru all the options and learn/implement them. If you just enable this you should be on a good way.

      Moving script/link tags up and down it not that critical and you should really take care when doing that.
      Signature
      You Can't Miss This!

      Business card included, Unlimited Revisions, rich portfolio.
      Please help us grow simply by clicking the link above
      {{ DiscussionBoard.errors[8011662].message }}
  • Profile picture of the author psvent
    Hi!

    Enabling cacheing (Total Cache or Super Cache) and using CSS/JS/HTML compression will reduce the load time and the number of requests. That is the simplest thing you can do to improve speed. Other measures (that will cost money) are using a CDN to server your static file and getting a better host (if you are currently using anything that is $10 or less per month).

    You got the error probably because you wanted to add a directive which can only be added in the scope of a VirtualHost block but that has to be added in on of the main config files of Apache and on shared hosting you usually don't have access to that.

    The best place to study Apache configuration is the docs core - Apache HTTP Server. If you check specific settings you will notice a line "Context" and that will tell you if you can use a specific setting in .htaccess.

    Primoz
    {{ DiscussionBoard.errors[8012480].message }}
    • Profile picture of the author Michael71
      Never heard such a $#!?...

      Enabling cache is NOT decreasing the number of http-requests.

      The only thing caching will do is it gives back a 304 (Not modified) to the browser so it is not loading the file again.

      The browser still does the request!

      A CDN will NOT help if your code is crap and you do not reduce http-requests by combining e.g. JS or CSS files, using CSS sprites and stuff.

      You need to understand how things work before telling others how it works.

      I do frontend performance optimizing since 2009... believe me when I say I know what I am doing, I know what I am telling, I know what you need to do and I know how it works.

      Craig, contact me on Skype if you want.

      Originally Posted by psvent View Post

      Hi!

      Enabling cacheing (Total Cache or Super Cache) and using CSS/JS/HTML compression will reduce the load time and the number of requests. That is the simplest thing you can do to improve speed. Other measures (that will cost money) are using a CDN to server your static file and getting a better host (if you are currently using anything that is $10 or less per month).

      You got the error probably because you wanted to add a directive which can only be added in the scope of a VirtualHost block but that has to be added in on of the main config files of Apache and on shared hosting you usually don't have access to that.

      The best place to study Apache configuration is the docs core - Apache HTTP Server. If you check specific settings you will notice a line "Context" and that will tell you if you can use a specific setting in .htaccess.

      Primoz
      Signature

      HTML/CSS/jQuery/ZURB Foundation/Twitter Bootstrap/Wordpress/Frontend Performance Optimizing
      ---
      Need HTML/CSS help? Skype: microcosmic - Test Your Responsive Design - InternetCookies.eu

      {{ DiscussionBoard.errors[8023805].message }}
      • Profile picture of the author psvent
        Yes, but combining CSS/JS WILL reduce number of http requests won't it? And that is why I suggested W3 Total Cache because it does exactly that (+cache pages,...)

        Using an CDN will additionally reduce load time won't it?

        Also I tried to be not to tech-savvy considering the OP and using a caching/performance plugin can help out people without having them to know everything that happens under the hood.

        Michal71... I don't know why you need to bash everything someone else suggests (you used the exact same opening line in the other thread...) we are all here to help each other out, aren't we? And you are not the only one here with experience by the way...
        {{ DiscussionBoard.errors[8024072].message }}
  • Profile picture of the author Craig Allen
    I've consulted content delivery network feature with my boss but for this moment we can't focus on that.

    The only thing that I can do at this moment is to limit the amount of requests needed to load all images on homepage. There are at least 25 http requests that can be cutted out and limited to just 1. Unfortunately those images are wrapped in shortcodes. I'll continue on this subject in DIFFERENT thread.

    P.s. The problem with 404's on tags in blog section of the webpage still occurs. I think that finally it can be problem with particular .htaccess directives. However, I would like that to be confirmed by you and michael . Thanks again for help
    Signature
    You Can't Miss This!

    Business card included, Unlimited Revisions, rich portfolio.
    Please help us grow simply by clicking the link above
    {{ DiscussionBoard.errors[8023516].message }}
  • Profile picture of the author psvent
    Did you try to refresh the rewrite rules? Generally it's enough to visit "Settings > Permalinks" additionally hitting "Save Changes".

    Also what are your settings in Permalinks? Do you have "Common settings" set to "Post name"? Anything in "Tag base"?

    If you turn permalinks off do tags work then?

    Also check you don't have any "leftovers" of any caching plugin you might have used in your .htaccess.
    {{ DiscussionBoard.errors[8023556].message }}
    • Profile picture of the author Craig Allen
      Hi ! Thanks for the reply ! Yes, I've tried to just save the permalink settings without modifying anything but unfortunately it didn't help. Permissions are set up correctly on htaccess file so the owner can overwrite that file.

      The settings are set to default 'post name' ('tag base' would need to be used only in case if you choose 'custom permalinks' which is not our case).

      Turning permalinks completely off makes every tag redirecting user to homepage (which is also not like it should be).

      Leftovers could have been in htaccess due to W3C total cache plugin which caused several problems but I have re-written htaccess from scratch and added proper directives. There are no leftovers. I have no idea what can it be.

      Originally Posted by psvent View Post

      Did you try to refresh the rewrite rules? Generally it's enough to visit "Settings > Permalinks" additionally hitting "Save Changes".

      Also what are your settings in Permalinks? Do you have "Common settings" set to "Post name"? Anything in "Tag base"?

      If you turn permalinks off do tags work then?

      Also check you don't have any "leftovers" of any caching plugin you might have used in your .htaccess.
      Signature
      You Can't Miss This!

      Business card included, Unlimited Revisions, rich portfolio.
      Please help us grow simply by clicking the link above
      {{ DiscussionBoard.errors[8023641].message }}

Trending Topics