Pretty Url not working on the server

If you have dedicated server then you must follow the below steps to run with .htacess

first of note that you need to create a configuration file for each site on your server using FTP.

as below

/etc/apache2/sites-available

go above path and then create file with below formate

e.g.

domain_name.domain_extension.conf

{ hello.com.conf }

add below code into it

<VirtualHost *:80>
    ServerAdmin [email protected]
    ServerName hello.com
    ServerAlias www.hello.com
    DocumentRoot /var/www/html  # your site data path
    <Directory "/var/www/html"> # your site data path
       Options FollowSymLinks
       AllowOverride All  
       Order allow,deny
       Allow from all
    </Directory> 
    ErrorLog /dev/null
    CustomLog ${APACHE_LOG_DIR}/access.log combined  # to check your log 
</VirtualHost>

after setup it.

please switch your permalink two-time vice versa and update your link in WordPress database.

and check I hope its working.

If not working, please restart apache server then.

error code: 523