Jump to content

Url Rewriting Issues


teemogq

Recommended Posts

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

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

Guest
This topic is now closed to further replies.
×
×
  • Create New...