how to change some of the rules in the database
how to change some of the rules in the database
how to change some of the rules in the database
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
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
This rewrite rule will surely work. Add this code to your .htaccess file. RewriteEngine On RewriteRule ^uni/([^/]*)$ /gallery/?university=$1 [L]
I want to add one extra field to my URLs, I’m using Rewrite functions but it doesn’t work
Are you sure that you have deleted completely all previous pages with the slug ‘news’ ? When you click on Trash, the page/post is only placed into the Trash folder, not deleted. You must then empty the trash folder to completely delete the page. If the old page remains in the trash folder and you … Read more
You can use this code in your .htaccess file to achieve what you want. RewriteEngine On RewriteRule ^\.html$ /articles/author/persons-name [L]
If you have access to the wp-config.php on the server, you can add the following constants that will override the database. This does not save the settings but will at least get you viewing the site again. define( ‘WP_SITEURL’, ‘url_to_wordpress_core_files’ ); define( ‘WP_HOME’, ‘url_to_wordpress_front_end’ ); There is also a RELOCATE constant that will make the … Read more
Relative URL filtering
You must use add_rewrite_rule() method, or add_rewrite_endpoint() in order to flush rewrite rules, and links you must generate with add_query_arg() method for ugly urls, for tiny u must simple concatenate with permalink