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 6807993
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:54:02+00:00 2026-05-26T19:54:02+00:00

I’m just starting out with Lithium, and I’m a total framework newbie, so I’m

  • 0

I’m just starting out with Lithium, and I’m a total framework newbie, so I’m having a hard time understanding the paradigm at work here – trying to understand rewrite rules is useless to me because I don’t know what they would be trying to accomplish.

I’ve broken up Lithium in a way that is different from how it comes installed, and I’m wondering if I need to change my htaccess, and in what way. I know what rewrite rules in .htaccess files “do,” but I’d like to understand what their role is in the Lithium framework. What does their behavior allow Lithium to do?

Here’s my best guess:
The rules in / and /app effectively force any request down to the webroot directory, where it is picked up by the /app/webroot rules. The /app/webroot rules append the given url to “index.php?url=”. So their purpose is to make /app/webroot the base directory (as far as the user can tell) and then throw the given URL into a “get” parameter so that it can be parsed from index.php. Does that sound about right? And if I’ve changed my file structure to

/foo     # was /app/webroot
/foo-app # was /app, no longer includes webroot dir

and I want / to present a blank page, then I can ignore the rewrite rules in /foo and /, and leave the one in /foo-app alone?

  • 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-05-26T19:54:02+00:00Added an answer on May 26, 2026 at 7:54 pm

    the .htaccess is effectively there to force everything into webroot for security purposes, mostly. So nobody can access anything outside webroot.

    The other purpose of it, as you’ve figured that out is to have nice URLs. So foo/bar gets rewritten as: index.php?url=/foo/bar

    If you plan to move webroot somewhere here, fix the paths and that should be it.

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
I'm having trouble keeping the paragraph square between the quote marks. In firefox the
For some reason, after submitting a string like this Jack’s Spindle from a text
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want to count how many characters a certain string has in PHP, but
I would like to count the length of a string with PHP. The string

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.