Rewrite & redirect questions
1 post
• Page 1 of 1
- toddsmith23
- Posts: 1
- Joined: 29 Oct 2015, 14:49
Rewrite & redirect questions
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!!
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!!
1 post
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 2 guests