• Hi, is anyone here experienced that the url is returning a “%23” instead of “#” which is referring to just a div ID.
    Is there any .htaccess code to fix the error? I just want the custom post type to scroll down on the specific section upon clicking.

    It’s returning a URL like this https://mysite/%23div
    But i want it to be like https://mysite/#div
    Thanks in advance.

    • This topic was modified 4 years, 7 months ago by dreamy.
    • This topic was modified 4 years, 7 months ago by dreamy.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @maryann17,

    It is a character encoding mismatch problem.
    Follow the below steps to fix it.
    Step 1) Open the ‘wp-config.php’ file in a text editor such as notepad (the wp-config.php file can be found on the directory where you installed WordPress).

    Step 2) Find the following two lines and comment them out:
    define(‘DB_CHARSET’, ‘utf8’);
    define(‘DB_COLLATE’, ”);

    Step 3) Now upload the updated ‘wp-config.php’ file to your WebHost (overwriting the old one).

    Let me know if it fixes the problem.

    Thread Starter dreamy

    (@maryann17)

    Hi, @khushbu1983 , thank you for taking your time to reply. However, it is still returning the same url with %23 instead of #. Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘URL is displaying instead of #’ is closed to new replies.