Rewrite & redirect questions

Helicon Ape provides support for Apache .htacces and .htpasswd configuration files for Microsoft IIS.
User avatar
Posts: 1
Joined: 29 Oct 2015, 14:49

Rewrite & redirect questions

30 Oct 2015, 02:41

Hello - I'm pretty new to rewriting and redirecting and could really use some help with the following.

I'm trying to rewrite dynamic urls that look like /schedules.aspx?sk=Los Angeles Lakers and rewrite it to
/Los-Angeles-Lakers-Schedule (note that the spaces are gone and added the -Schedule as a suffix. The rule i have works, except i have no idea how to remove the spaces (%20) at this point.
RewriteRule ^([^/]*)-Schedule$ /schedules.aspx?sk=$1 [L]

The other problem i have is i would like to redirect clients to /Los-Angeles-Lakers-Schedule when /schedules.aspx?sk=Los Angeles Lakers is accessed. Is this possible using helicon ape?

I really appreciate any help given.

Thank you!!

Return to Helicon Ape

Who is online

Users browsing this forum: No registered users and 0 guests