How do you make URL rewriting show in the browser address bar using .htaccess, I need some help with that
For further actions, you may consider blocking this person and/or reporting abuse
How do you make URL rewriting show in the browser address bar using .htaccess, I need some help with that
For further actions, you may consider blocking this person and/or reporting abuse
Olga Lugacheva -
Eshat Jubayer -
Yug Jadvani -
AnhChienVu -
Top comments (5)
I don't rewrite URLs, just redirect to index.php
Will redirecting remove the ugly URL like posts.php?id=12 or something of the sort
Yes, when URL is example.com/post/12 , redirect it to index.php without rewriting. The script get this string from $_SERVER['REQUEST_URI'] and parse it with function parse_url(). The component 'path' I parse with explode(). That's all.
Let me try it then i share the feedback
Anyone who has ever worked with URL rewriting in apache