Comments (5)
Trying:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /--/index.php/$1 [PT,L,QSA]
Thus, the script at /--/index.php
gets everything it needs, but actual files cannot be fetched, e.g. /images/bug.gif
from freshports.
https://www.mediawiki.org/wiki/Manual:Short_URL/Apache was recommended as a starting point. It works better. Now using:
RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
RewriteRule ^(.*)$ %{DOCUMENT_ROOT}/--/index.php [L]
Instead of letting the system check for existing file and directories, it might be easier to just ignore specific files and directories... i.e. less syscalls. This suggestion courtesy of Colin Percival.
from freshports.
This is not yet in production.
from freshports.
Moving to production now...
from freshports.
Now on production. Seems OK.
from freshports.
Related Issues (20)
- Highlight "There is no maintainer for this port." HOT 4
- Empty/blank plain text search result HOT 2
- HTML - remove cellpadding; replace with CSS HOT 1
- timezone info on web pages with time(s) HOT 7
- Search: commit message: Undefined array key "stf_message" in /usr/local/www/freshports/classes/commit_ports.php on line 96 HOT 12
- Search: scope menu: closer to alphabetical order HOT 5
- the new category broke fp-listen HOT 5
- Cater for ports with multiple values in WWW: HOT 4
- Slave port fails to update version HOT 13
- RSS feed for newly added port stopped working HOT 2
- FreshPorts daily notification - main: two broken links HOT 2
- https://www.freshports.org/ports-forbidden.php is empty when 10 are listed HOT 8
- List of ports in a category on a branch are incorrect HOT 5
- lots of problems involving multiple watchlists HOT 14
- https://www.freshports.org//d gives 'non-port' instead of 404 HOT 2
- Search: … pg_exec(): Query failed: ERROR: invalid byte sequence for encoding "UTF8": 0xe1 0x66 0x69 in /usr/local/www/freshports/www/search.php on line 908 HOT 7
- Some pages show a table of packages for an expired flavor/flavour HOT 80
- Deprecated: strtotime(): Passing null to parameter #1 ($datetime) of type string is deprecated in /usr/local/www/freshports/classes/port-display.php on line 941 HOT 3
- sanity tests - cache and paging HOT 4
- DB error while trying to update my watchlist HOT 9
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 freshports.