Convert the Permalink structure of WordPress in Ubuntu
TipsMake.com - For those who use WordPress services, changing the permalink structure (URL links point to a specific article in a blog or forum) is a form that is easier to see and read for everyone compared to the default ? p = 123 . And an idea proposed by the WordPress community is widely used to install the plugin Permalinks Migration. However, if not installed and configured properly, the plugin will not work and cause an HTTP 404 Error Message error. In the following article, TipsMake.com will guide you how to overcome this phenomenon.
First, install and activate the plug-in as usual.
Select AdminPanel -> Options -> PermalinksMigration and set up the old structure of the website you are using, in this case we use the default structure, so fill in /% post_id% /
Next, at AdminPanel -> Options -> Permalinks and change this structure to whatever format you want, with various sources and suggestions from the online community, along with the search engine optimization feature. - Search engine optimization (SEO), we will use the form /%postname%-%post_id%.html/
For other plugins, just change the corresponding technical parameters to the correct format that can be used and functioning normally. All posts previously posted using the old permalink structure will return HTTP 404 results unless they are re-indexed by each post manually with Permalinks Migration. So how to simplify this process? Any operator using the current URL will immediately point to HTTP 301 that requires mod_rewrite module to be enabled in the Apache server system, but is currently disabled in default mode. And this is one of the reasons for this phenomenon.
Use locate to search if mod_rewrite.so is available on the server:
sudo locate mod_rewrite.so
Usually, the results will be found in / usr / lib / apache2 / modules .
Switch to the modes-enabled directory:
cd / etc / apache2 / mods-enabled
Proceed to update and open the rewrite.load file:
sudo touch rewrite.load
sudo gedit rewrite.load
Paste the following command into the rewrite.load file:
LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so
Next, open the file / etc / apache2 / sites-available / default and look for the following parameters:
Indexes Options FollowSymLinks MultiViews
AllowOverride None
and change to:
Indexes Options FollowSymLinks MultiViews
AllowOverride all
Finally, restart Apache:
sudo /etc/init.d/apache2 restart
Good luck!
You should read it
- How to install WordPress plugin
- Instructions for installing WordPress on Bluehost
- How to change the font in WordPress
- Instructions for installing WordPress on the Vitual Server with Cloud9
- Instructions for installing WordPress on localhost - Part 1
- How to install Ubuntu in parallel with Windows using USB
- Which platform is better for WordPress.com and WordPress.org?
- Why is WordPress free?
May be interested
- How to post photos and videos in WordPressin wordpress posts when inserting images or videos will increase the lively for the article, attracting more viewers.
- Instructions for installing WordPress on the Vitual Server with Cloud9downloading and running internal wordpress servers is quite complicated. if you are a seasoned developer, you should set up a local server with xampp or wamp. but if you are a 'new' who just wants to 'mischief' install wordpress self-host, follow and follow the steps below.
- Wix and Wordpress - Which one is better?this article will compare wix with wordpress and highlight the pros and cons of each platform. hopefully after reviewing and comparing wix with wordpress, you will be able to decide which platform is right for you.
- How much does it cost to build a WordPress website?although the core wordpress software is free, the cost of a wordpress site depends entirely on your budget and goals.
- How to change the font in WordPressonce you have successfully installed and set up wordpress on localhost, you realize one thing: wordpress's default font when typing vietnamese does not look good, it is not beautiful when using large font size, or zoom in. .. or simply, we want to change the default font of wordpress, how to do it?
- How to install WordPress pluginafter installing wordpress, the first thing that people need to start learning is how to install wordpress plugins. in this step-by-step guide, tipsmake.com will show you how to install a wordpress plugin.
- Instructions for installing WordPress on Bluehostin this article, you will learn how to install wordpress on bluehost using different methods. the article will also mention what makes bluehost a unique hosting for wordpress.
- How to delete posts posted on WordPressposting on wordpress is very simple and it is easy to delete posts. we can control posts posted to wordpress and delete them if necessary.
- Is Drupal or WordPress the best open source CMS?chances are, when you think about building websites, from wordpress almost immediately appears in your head. wordpress 'dominates' thanks to its market share and accessibility.
- How to set up WordPress for local development in Linuxthis article will follow the path of using apachefriends' easy xampp installer, turning the installation of apache, mariadb, and php into a simple task, just click 'next' and you're done.