<?php

$url=strtok($_SERVER["REQUEST_URI"],'?');
if($_SERVER["REQUEST_URI"][1]=="o" && $_SERVER["REQUEST_URI"][2]=="/" && preg_match("/^\/o\/([a-zA-Z0-9\-]+)$/",$url)){
	$_GET["product"] = strtolower(str_replace("-","",substr($url, 3)));
	require __DIR__ . '/offwp/index.php';
	die();
}

?>

<?php
/**
 * Front to the WordPress application. This file doesn't do anything, but loads
 * wp-blog-header.php which does and tells WordPress to load the theme.
 *
 * @package WordPress
 */

/**
 * Tells WordPress to load the WordPress theme and output it.
 *
 * @var bool
 */
define( 'WP_USE_THEMES', true );

/** Loads the WordPress Environment and Template */
require __DIR__ . '/web/wp-blog-header.php';
