URLs unchanged after migration

The previous developer had hard coded update_option(‘siteurl’,’http://example.com’); update_option(‘home’,’http://example.com’); in functions.php which on being removed resolved the issue. Thanks everyone for churning in your suggestions.

.htaccess RewriteBase equivalent for WordPress – Passing a URL as a variable without getting a 404

It wouldn’t give you exactly that format, but you could add a rewrite endpoint named slide and get the format http://www.sitename.com/gallery/slide/2/: function wpd_add_slide_endpoint(){ add_rewrite_endpoint( ‘slide’, EP_PAGES ); } add_action( ‘init’, ‘wpd_add_slide_endpoint’ ); Then you could localize your script to pass the slide number, using get_query_var(‘slide’) to fetch the current value.

Font Page overrides rewrites

Are you sure your rewrite rules are actually being saved? How are you calling this function to setup the rewrite rules? Action? What about flushing rewrite rules, are you flushing them anywhere in your project? Disable all of your plugins and test to make sure one isn’t flushing rewrite rules on every page load. As … Read more

What’s the best approach to do this?

about the permalinks you should go to settings->permalinks and change permalinks to “post name”. then you can see “/blog/” for your blog page. for translating your theme you dont need any plugins. you should work with .po files. go to your theme folder and then “languages”. there you can see translation files inside this folder. … Read more

How to create short urls for sharing and downloadable content?

Here’s a possibly simple solution, using an ancillary table, and user-defined short slugs: create a post_meta “short_slug” when creating a post, the link-name from your example on save_post, if (meta_key=’short_slug’ and is_a_valid(meta_value)) wpdb->insert into short_slugs_table slug,permalink , your index.php on your mgscr.com could then open a mysql connection to the same db, parse the url … Read more