Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

make localhost with a vhost work again

  • Loading branch information...
commit 519f64e78b27cc0159af3b38a71a6d76e89b269c 1 parent 76d8c13
@cygri authored
Showing with 3 additions and 7 deletions.
  1. +1 −1  config.php
  2. +0 −4 lib/request.class.php
  3. +2 −2 maintenance.php
View
2  config.php
@@ -2,7 +2,7 @@
error_reporting(E_ALL);
$config = array(
- 'site_base' => 'http://prefix.local/',
+ 'site_base' => 'http://prefixcc.local/',
// 'site_base' => 'http://prefix.cc/',
'block_time' => 60, // seconds
// 'block_time' => 60 * 60 * 16, // seconds
View
4 lib/request.class.php
@@ -6,10 +6,6 @@ class Request {
function __construct() {
$uri = substr($_SERVER['REQUEST_URI'], 1);
- if (preg_match('!^prefix.cc/(.*)$!', $uri, $match)) {
- // in my development setup, the site runs at http://localhost/prefix.cc/
- $uri = $match[1];
- }
$this->uri = $uri;
preg_match('/([^\?]*)(\?.*)?$/', $uri, $match);
$this->path = $match[1];
View
4 maintenance.php
@@ -4,7 +4,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>site maintenance | prefix.cc</title>
- <base href="http://localhost/prefix.cc/" />
+ <base href="http://prefix.cc/" />
<style type="text/css">
<?php readfile('style.css'); ?>
</style>
@@ -15,7 +15,7 @@
</div>
<div class="footer">
<span class="message"><span>prefix.cc is undergoing site maintenance. Please check back later.</span> | </span>
- <a rel="home" href="http://localhost/prefix.cc/">prefix.cc</a>
+ <a rel="home" href="http://prefix.cc/">prefix.cc</a>
</div>
</body>
</html>
Please sign in to comment.
Something went wrong with that request. Please try again.