Giter VIP home page Giter VIP logo

Comments (3)

AD7six avatar AD7six commented on July 18, 2024

I think you mean #1 (or perhaps h5bp/html5-boilerplate#876) :)

It's not clear what you've done - can you clarify please: what are the contents of html5boilerplate.conf, what are the contents of apache2.conf ? This is sounding like it may not be a valid ticket since it's not about code that is in this repository and is more of a request for support/general-apache-help.

from server-configs-apache.

2ndkauboy avatar 2ndkauboy commented on July 18, 2024

Correct, I was referencing the ticket from html5-boilerplate, but was asked to reopen my previous ticket here. And I don't think that it's an issue of the content of the .htaccess, too. I was just wondering if I am missing something in my config that make RewriteRule and RewriteEngine not working in an Apache config file.

My html5boilerplate.conf is just like the .htaccess file in this project, but with the "www subdomain rewrite" deactivated and the "Filename-based cache busting" enabled.

These are the important lines in the apache2.conf:

Include mods-enabled/*.load
Include mods-enabled/*.conf
Include httpd.conf
Include ports.conf
Include conf.d/
Include html5boilerplate.conf
Include sites-enabled/

from server-configs-apache.

alrra avatar alrra commented on July 18, 2024

@2ndkauboy

  1. Please read the CONTRIBUTING.md and use Stack Overflow for personal support requests.
  2. In the future, please provide more information: OS, Apache version etc.
  3. Try the followings:
  • make sure you've enabled mod_rewrite.
  • (maybe move html5boilerplate.conf into conf.d/)
  • use something like:
<Location />
    <IfModule mod_rewrite.c>
        Options +FollowSymlinks
        RewriteEngine On
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteRule ^(.+)\.(\d+)\.(js|css|png|jpg|gif)$ $1.$3 [L]
    </IfModule>
</Location>

Hope it helps :)

from server-configs-apache.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.