This is the archived version of my b2evolution code blog.
If you require any help regarding b2evolution then
visit it's support forums
You can find my current blogs here
Code : {@link : WafflesOn}
Personal : {@link : InnerVisions}
| « Yayyyyyy, it's gone live at last :D | Potential exploit » |
Posted on 2nd Dec 2006 in : Hacks
Damn it would appear that I've stumbled across a way to get clean urls working on a windoze box. It requires a shedload more testing, but this is the gist of it.
1) Enable a custom 404 for your blog folder ( urm, there's probably summat in your ControlPanel to do it, or just hit IIS huh?) and point it at /[path to blogs]/index.php
2 )Create a conf/hacks.php with the following code :-
Code:
<?php | |
/* | |
* Extra Path ? On windows? :O | |
*/ | |
if( !defined('EVO_CONFIG_LOADED') ) die( 'Please, do not access this page directly.' ); | |
| |
if( ( ! isset( $resolve_extra_path ) || $resolve_extra_path ) && is_windows() ) | |
{ | |
$ReqPath = preg_replace( '#^(.+?):80([^?]+?)(\?.+?)*$#', '$2', $ReqURI ); | |
$ReqURI = preg_replace( '#^(.+?):80(.+?)$#', '$2', $ReqURI ); | |
} | |
?> |
3) Turn extra path on in admin ..... kinda helps
That's it, extra path should now work!
¥
Page archived : 14th Feb 2010