Project

General

Profile

how do I get rid of "?_=" in my ULR

Added by Jim Garvin about 5 years ago

when I run my wt app all my paths have ?_= in them. For example http://localhost:9090/?_=/foo/bar

I would like to get just http://localhost:9090/foo/bar

Can anyone tell me how to properly set up internal paths to accomplish this?

Thanks


Replies (3)

RE: how do I get rid of "?_=" in my ULR - Added by Jim Garvin about 5 years ago

well I found out I have to extend my ---docroot as follows for hangman

./hangman.wt ---docroot=".;./icons,./resources" ---http-address 0.0.0.0 ---http-port 8080

but something is going wrong for my app.

./myapp ---docroot="./docroot;./docroot/icons,./docroot/pics,./docroot/resources,./docroot/style,./docroot/resources/themes,./docroot/resources/font-awesome" ---http-address 0.0.0.0 ---http-port=9090 ---approot ./approot

all the working formatting for things like the navbar are gone

RE: how do I get rid of "?_=" in my ULR - Added by Jim Garvin about 5 years ago

okay...

For anyone else looking for this answer (some athourity correct me if I'm wrong) since ./docroot is specified I only needed to add the sub directories as show below

./myapp ---docroot="./docroot;/icons,/pics,/resources,/style,/resources/themes" ---http-address 0.0.0.0 ---http-port=9090 ---approot ./approot

now everything looks correct and I get the URL as expected.

RE: how do I get rid of "?_=" in my ULR - Added by Roel Standaert about 5 years ago

Indeed. The first part of the --docroot argument is a directory on the file system, but the other paths are web URLs.

It basically says:

"When http://host:9090/icons is requested, look in docroot + /icons instead of treating it as an internal path", etc. for all of the paths in that list.

    (1-3/3)