http://andeywala.in/single-post.php?title_slug=opportunities-in-India-by-Andeywala
are requested. I want to remove the single-post.php?title_slug= and such that the resulting URL becomes:
www.mydomain.com/opportunities-in-India-by-Andeywala
http://andeywala.in/single-post.php?title_slug=opportunities-in-India-by-Andeywala
are requested. I want to remove the single-post.php?title_slug= and such that the resulting URL becomes:
www.mydomain.com/opportunities-in-India-by-Andeywala
You can do this by adding a rewrite rule to your .htaccess
file.
RewriteEngine On
RewriteRule ^([^/]*)$ /single-post.php?title_slug=$1 [L]
What you are looking for is called pretty urls, there is plenty of documentation available both on Google and StackOverflow as well.
In any case, if you are using Apache server that supports .htaccess files, you will need to create rewrite rules like below in the .htaccess file:
RewriteEngine On
RewriteRule ^$ index.php
RewriteRule ^([a-zA-Z0-9-]+)/?$ single-post.php?title_slug=$1