Skip to content

Instantly share code, notes, and snippets.

@svandragt
Created January 26, 2021 11:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save svandragt/8ac5782892832b1395d3d60116777b35 to your computer and use it in GitHub Desktop.
Save svandragt/8ac5782892832b1395d3d60116777b35 to your computer and use it in GitHub Desktop.
Altis Local Server index
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which tells WordPress to load the theme.
*
* @package WordPress
*
* DO NOT EDIT THIS FILE.
*
* phpcs:disable PSR1.Files.SideEffects
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define( 'WP_USE_THEMES', true );
/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . '/wordpress/wp-blog-header.php' );
@svandragt
Copy link
Author

The only line that's difference here is the path to include /wordpress on L21

@svandragt
Copy link
Author

Same as: sed -i "s/require __DIR__ . '/require __DIR__ . '\/wordpress/g" index.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment