Skip to content

Instantly share code, notes, and snippets.

View novosadskigari's full-sized avatar

Damir novosadskigari

View GitHub Profile
@novosadskigari
novosadskigari / CreateWordpressUser.php
Created March 14, 2018 11:23 — forked from jawinn/CreateWordpressUser.php
Create WordPress Admin User from PHP
<?php
// ADD NEW ADMIN USER TO WORDPRESS
// ----------------------------------
// Put this file in your Wordpress root directory and run it from your browser.
// Delete it when you're done.
require_once('wp-blog-header.php');
require_once('wp-includes/registration.php');
// ----------------------------------------------------
@novosadskigari
novosadskigari / .htaccess
Created April 18, 2017 19:09
Common .htaccess Redirects
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/