Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8615399
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T05:22:05+00:00 2026-06-12T05:22:05+00:00

If I append a base path to the approot property in settings.yml like approot=http://localhost:3000/base

  • 0

If I append a base path to the approot property in settings.yml like

approot=”http://localhost:3000/base”

calling this URL in the browser shows “Not Found” as message, instead of giving properly the Home page.

I could not find any way to solve it.

…

I see, I have to Rewrite the URL without the base prefix before submitting it to the yesod task, and the approot is only used to be prepended to all page links.

Is there a proper way to handle theese non-empty path based URL’s ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T05:22:06+00:00Added an answer on June 12, 2026 at 5:22 am

    There are two relatively simple approaches to this:

    1. Create a middleware which will strip the leading “base” value from the pathInfo.
    2. Override cleanPath (in the Yesod typeclass) to do the same.

    In general, an approot with a leading path piece is most useful where there’s some front server which is calling out to your Yesod app (either via reverse proxy or FastCGI).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to override Url.Content to append a query string parameter to the
i have one string variable svcName=serviceName and i have to append Base this string
A=s.append(s[i]+A+B) A=s.append(s[i]+A+B) TypeError: unsupported operand type(s) for +: 'long' and 'str' What does this
I would like to append a small message stating how the message to a
I know this sounds like a stupid question, but I really don't see the
Consider the following security problem: I have a static base path ( /home/username/ )
Imagine I have a 'base' path object, denoting a directory, and a 'relative' path
.append Function adds elements to the list. How can I add elements to the
sb.Append(<script language='javascript'>) sb.Append(window.open('updateRT.aspx?batchno= + batchno + &prodcode= + prodcode + &maxrunningtime= + temprunningtime +
xml.append(<alertDesc>); xml.append(desc); xml.append(</alertDesc>); response.getWriter().write(xml.toString()); response.setContentType(text/xml); response.setHeader(Cache-Control, no-cache); xml is a StringBuffer object. I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.