Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

HANA xs app, URL ReWrite not working - 404 not found

$
0
0

Hi All,

 

Can someone please assist in getting URL rewrite working on a simple HANA XS application? I keep getting a 404 not found.

 

My application root is located at:

/MAIN/PACKAGE1/

 

I am trying to map this:

/MAIN/PACKAGE1/svc/...

 

to:

/MAIN/PACKAGE1/services/...


The .xsaccess file looks like this:

{

     "exposed" : true,

     "authentication" :                                     

            {

               "method": "Form"

            },

  "rewrite_rules" :

  [ { "source": "/MAIN/PACKAGE1/svc/(.*)",

  "target": "/MAIN/PACKAGE1/services/$1"}

  ]

}

 

The following URL works:

/MAIN/PACKAGE1/services/getCurrentUser.xsjs

 

But this one does not:

/MAIN/PACKAGE1/svc/getCurrentUser.xsjs


Viewing all articles
Browse latest Browse all 6412

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>