teemogq 0 Posted September 10, 2020 Share Posted September 10, 2020 Greetings! After numerous searches, and still no luck, I've decided to ask WF for support. This is also my first post! I'm sure this is a simple issue. But when it comes to htaccess/mod_rewrite I am stumped, or I overlook things. I am trying to rewrite: www.example.com/index.php?app=points&module=points&controller=dashboard To: www.example.com/dashboard My current htaccess: <IfModule mod_rewrite.c> Options -MultiViews RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteRule \.(js|css|jpeg|jpg|gif|png|ico|map)(\?|$) /404error.php [L,NC] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> I have tried adding: RewriteRule ^([^/]*)$ /index.php?app=points&module=points&controller=$1 [L] But then I get a 500 Internal Server Error Any help, greatly appreciated. teemogq Hey! I also posted this question on Stack Overflow, if you're a contributor, you can earn for answering. Link: https://stackoverflow.com/questions/63821427/url-rewriting-issues Thanks for your help! Link to comment Share on other sites More sharing options...
Jrock 181 Posted September 10, 2020 Share Posted September 10, 2020 Try RewriteCond %{QUERY_STRING} (^|&)app=points($|&) RewriteCond %{QUERY_STRING} (^|&)module=points($|&) RewriteCond %{QUERY_STRING} (^|&)controller=dashboard($|&) RewriteRule ^www\.example\.com/index\.php$ /www.example.com/dashboard?&%{QUERY_STRING} Link to comment Share on other sites More sharing options...
teemogq 0 Posted September 10, 2020 Author Share Posted September 10, 2020 No luck. Thank you for your help. Link to comment Share on other sites More sharing options...
mr-pimpen 387 Posted September 11, 2020 Share Posted September 11, 2020 5 hours ago, teemogq said: No luck. Thank you for your help. did you enable Rewrite URLs? Search Engine Optimization when I load your site, I was like a vampire, slept for thousands of years and just now is my first glimpse of light haha. Link to comment Share on other sites More sharing options...
teemogq 0 Posted September 11, 2020 Author Share Posted September 11, 2020 Yes, I have enabled rewrites and friendly urls. Link to comment Share on other sites More sharing options...
Recommended Posts