Solution to getting error 404 on "Hindi url links" or "Special character url links"
If you are getting 404 error when opening a page which url link containing hindi characters as shown in image below. This problem may also be arise if link contains special characters like ',/,',%,+,^ etc any other language characters. This can be solve by editing the htaccess RewriteRule code to accept special characters. This code will be found in .htaccess file (you have to find it in your project directories, generally in root directory,sometime this file is keep in hidden mode. then you have to set file manage to "show hidden files").
There you will find code like following: RewriteRule ^Blogs/([A-Za-z0-9-_.]+)/([A-Za-z0-9-_.]+)/?$ topics/topics.php?site=Blogs&x=$1&y=$2 [NC,L]
You have to correct it as: RewriteRule ^Blogs/([A-Za-z0-9-_.]+)/([^/]{2,150})/?$ topics/topics.php?site=Blogs&x=$1&y=$2 [NC,L]
That is: [A-Za-z0-9-_.]+ to [^/]{2,150}
This code will allow all special characters or other language characters
Comments...
Write Your Comment