Search our database

How To Use Permalinks In WordPress (CentOS Guide)

Permalinks are the permanent web address to each of your pages, blog posts, page category and tag archives. By default, WordPress uses web URLs which have day and name in them; however, WordPress offers you the ability to create a custom URL structure for your permalinks and archives. This can improve the aesthetics, usability, and forward-compatibility of your links.

If you would like to change your WordPress’ permalink structure, you can do so by navigating to Settings -> Permalinks.

Permalinks

 

Choose the type of permalink structure you want and click “Save Changes“.

If an error message, “If your .htaccess file is writeable, ¬†we could do this automatically but it isn’t” so these are the mod_rewrite rules you should have in your .htaccess file. Click in the field and press CTRL + A to select all.”

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

 

Step 1 – To fix this error, you will need to login to your server terminal and proceed to directory /var/www/html and list all the available files.

cd /var/www/html
ls -asl

Step 2 – We have to make .htaccess file writeable and the file should be located in the web root directory, at /var/www/html. If there isn’t any .htaccess file in the directory, you need to create one.

touch /var/www/html/.htaccess

 

Step 3 – Change the file’s permission so that it is writeable by Apache.

chown apache /var/www/html/.htaccess

 

Step 4 – Edit your httpd.conf file in /etc/httpd/conf/.

vi /etc/httpd/conf/httpd.conf

 

Step 5 – Search for the line that resembles below :

<Directory "/var/www/html">

 

Under this line, look for the line which shows

    • AllowOverride

None

(the option is None by default) and change it to

    • AllowOverride

All

Step 6 – Restart your Apache.

service httpd restart

 

Affordable but Powerful Cloud Hosting Package

Check out IPServerOne’s Cloud Hosting Packages.
Contact us @ +603-2026-1688 or email @ sales@ipserverone.com

Tags: , , , , ,