Skip to content

Commit

Permalink
#460 rename folder and add rest check
Browse files Browse the repository at this point in the history
  • Loading branch information
baxgas committed Feb 22, 2022
1 parent 4407658 commit 60bedee
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 9 deletions.
14 changes: 14 additions & 0 deletions wp/wp-content/themes/lahma_cms/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php
/* load all wp stuff */
wp_head();
wp_footer();

$restEndpoint = 'wp-json/wp/v2'

// Check if URL contains the restEndpoint
if (stripos($_SERVER['REQUEST_URI'], $restEndpoint )!==true){
/* redirect then die */
header("Location: https://www.lahmacun.hu/");
die();
}
?>
File renamed without changes.
9 changes: 0 additions & 9 deletions wp/wp-content/themes/lahma_cms_template/index.php

This file was deleted.

0 comments on commit 60bedee

Please sign in to comment.