Skip to content
Advertisement

Tag: mod-rewrite

.htaccess remove URL path segments that are causing an Internal Server Error

The following .htaccess Rewrite below seems working fine if the URL is something like: example.com/news/post-1 However, if the URLs have more parameters, something like: example.com/news/post-1/comment-page-1 (URLs from another version of the website) I will get a 500 Internal Server Error. How I can make it redirect to the related post instead of 500 Internal Server Error? Answer if the URLs

Customize URL rewriting with htaccess

I have the following in my htaccess: It works perfectly, the question is whether it would also be possible to automatically redirect it to the new path when the PHP file is accessed directly? For example: example.com/pwreset.php >> example.com/reset-password There are several pages, so I needed something practical. UPDATE: The difficulty is with links like this: user.example.com/clientarea.php?action=services When accessed it

Advertisement