Search the Community
Showing results for tags 'url-rewriting'.
Found 1 result
Hi, i never worked with .htaccess files because i didn't use it for anything, now i need one and i'm stuck into this. I made a rule to remove .php extension from file and to make a url like this "localhost/blog/My%20first%20post" Now i need to replace that white spaces and make a url to look like this "localhost/blog/My-first-post" Here is my .htaccess file RewriteEngine On # Removes .php extension from inner_blog.php RewriteRule ^blog/?$ blog.php [NC] # Remove inner_blog.php and changing it to blog/articlename RewriteRule ^blog/([^/]*)$ /inner_blog.php?title=$1 [L]