Editing
User:Endenizen/URL Rewriting
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== URL Stuff for noisebridge wiki === '''LocalSettings.php in /wiki''' <code>$wgScriptPath</code> should already be defined. Wiki should be installed/moved to the /wiki dir. (first two lines may be optional) $wgScript = "$wgScriptPath/index.php"; $wgRedirectPath = "$wgScriptPath/redirect.php"; $wgArticlePath = "/wiki/$1"; '''.htaccess in /wiki''' Verifies that we're not trying to access an actual file, then passes us off to the wiki script. RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule (.*)$ index.php?title=$1 '''.htaccess in /''' Redirects us to the /wiki article if there is a '/' on the end of index.php or to an edit page if it finds a query string (ie: if we saved a link to an edit page with the old scheme, it should work just fine with the new scheme). RewriteEngine On RewriteRule ^index.php/(.+)$ /wiki/$1 [R] RewriteCond %{QUERY_STRING} !="" RewriteRule ^index.php$ /wiki/index.php [R,QSA]
Summary:
Please note that all contributions to Noisebridge are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
Noisebridge:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Request account
Namespaces
User page
Discussion
English
Views
Read
Edit
View history
More
Search
Dig in!
Noisebridge
- Status: MOVED
- Donate
- ABOUT
- Accessibility
- Vision
- Blog
Manual
MANUAL
Visitors
Participation
Community Standards
Channels
Operations
Events
EVENTS
Guilds
GUILDS
- Meta
- Electronics
- Fabrication
- Games
- Music
- Library
- Neuro
- Philosophy
- Funding
- Art
- Crypto
- Documentation/Wiki
Wiki
Recent Changes
Random Page
Help
Categories
(Edit)
Tools
What links here
Related changes
User contributions
Logs
View user groups
Special pages
Page information