WP Admin > Settings > Permalinks
https://dev-staging.eye.fi/wp-admin/options-permalink.php (also to fix redirect loop)
https://dev-staging.eye.fi/wp-login.php
/%category%/%postname%/
'permalink_structure','/%year%/%monthnum%/%postname%/'
UPDATE wp_options SET option_value='/%year%/%monthnum%/%postname%/' WHERE option_name = 'permalink_structure'; UPDATE wp_options SET option_value='/%category%/%postname%/' WHERE option_name = 'permalink_structure'; SELECT * FROM `wp_options` WHERE option_name = 'permalink_structure';
UPDATE wp_options SET option_value = NULL WHERE option_name = 'rewrite_rules'; SELECT * FROM `wp_options` WHERE option_name = 'rewrite_rules';
Pages defines:
wp_posts ID = 1 post_type = 'page';
wp_postmeta meta_id: 1, post_id: 1, meta_key: '_edit_last', meta_value: '1'; meta_id: 2, post_id: 1, meta_key: '_edit_lock', meta_value: '1289355265'; meta_id: 3, post_id: 1, meta_key: '_wp_page_template', meta_value: 'default';
And immediately creates a revision.
SELECT * FROM `wp_posts` WHERE ID = 29
SELECT * FROM `wp_postmeta` WHERE post_id = 29
guid += ?p=29
Post defines:
wp_posts ID = 3 post_type = 'post';
wp_postmeta meta_id: 4, post_id: 3, meta_key: '_edit_last', meta_value: '1'; meta_id: 5, post_id: 3, meta_key: '_edit_lock', meta_value: '1289356052'; meta_id: 6, post_id: 3, meta_key: '_wp_old_slug', meta_value: '';
And immediately creates a revision.
global $more;
$more = 0;
$post_obj = $wp_query->get_queried_object();
$post_ID = $post_obj->ID; $post_title = $post_obj->post_title; $post_slug = $post_obj->post_name;
if(is_category()) { $yourcat = get_category($cat); //echo $yourcat->slug; }
<?php /** Saving FTP Info ( http://www.wprecipes.com/wordpress-tip-easy-upgrades-using-ftp ) */ define('FTP_HOST', 'dev.ayzenberg.com'); define('FTP_USER', 'dev'); define('FTP_PASS', 'Your_FTP_password'); define('FTP_SSL', false); // If you can use a SSL connection set this to true
define('FORCE_SSL_LOGIN', true); // OR // define('FORCE_SSL_ADMIN', true);
/** Debug your code efficiently ( http://www.catswhocode.com/blog/best-practices-for-wordpress-coding ) */ define('WP_DEBUG', false); define('SCRIPT_DEBUG', false); ?>
Create the uploads and upgrade directories in wp-content so you can add plugins and do upgrades via the wp-admin.
Create .htaccess
Make sure each of these directories and files are writable by the same group as the web server.