Comments (3)
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.
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.
- Please read the CONTRIBUTING.md and use Stack Overflow for personal support requests.
- In the future, please provide more information: OS, Apache version etc.
- Try the followings:
- make sure you've enabled mod_rewrite.
- (maybe move
html5boilerplate.conf
intoconf.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)
- SSL auto renewal blocked by www redirect HOT 2
- Missing version in custom `.htaccess` builds HOT 8
- `DirectoryIndex` comment if pre-compressed content is enabled HOT 4
- Question: mpm_winnt_module HOT 3
- Remove `image/avif-sequence` MIME type HOT 6
- Variable evaluation in build script HOT 2
- Add build parameter to generate `.htaccess` without comments HOT 2
- `ServerTokens Prod` missing HOT 2
- Missing `<IfModule mod_authz_core.c>` block HOT 1
- Remove `<IfModule>` from `Options -Indexes` HOT 1
- Add `<IfModule http2_module>` for h2 protocol support HOT 9
- Add note about `RewriteOptions Inherit` HOT 3
- `Permissions-Policy` header for Google “Topics API” HOT 1
- Add `Document Policy` to security section HOT 2
- Add `Shared Brotli` and `Shared Zstandard` (zstd) HOT 2
- Error with `Permissions-Policy` header: Unrecognized feature: `'document-domain'` HOT 1
- Format `Content-Security-Policy` header directives HOT 4
- Add `ExpiresByType` for `audio/mp4` with `"access plus 1 year"` HOT 3
- Fallback with ExpiresDefault does not seem to include images HOT 7
- `mod_cache` and link to trunk version of docs HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from server-configs-apache.