Rewrite AngularJS URLs

Helicon Ape provides support for Apache .htacces and .htpasswd configuration files for Microsoft IIS.
User avatar
Posts: 8
Joined: 03 Oct 2012, 08:35

Rewrite AngularJS URLs

27 Mar 2015, 14:55

Hi there!

I have some AngularJS URLs that looks like this:

www.mysite.com/myfolder/#!/myapp/ef098e ... c26c3f248e

How can I make that call a file like

www.mysite.com/myfolder/page.cfm?app=my ... c26c3f248e

Thanks a lot!

User avatar
Posts: 871
Joined: 12 Mar 2012, 09:54

Re: Rewrite AngularJS URLs

28 Mar 2015, 05:44

Hello,

You may try the following rule:

RewriteBase /
RewriteRule ^myfolder/#!/myapp/(.+)$ /myfolder/page.cfm?app=myapp&token=$1 [NC,L]

However, the part of the URL after # is not sent to IIS and therefore Ape cannot process it either.

Return to Helicon Ape

Who is online

Users browsing this forum: No registered users and 21 guests