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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:16:43+00:00 2026-05-26T05:16:43+00:00

I am using CakePHP 1.3 on my LAMP Environment for one of my project,

  • 0

I am using CakePHP 1.3 on my LAMP Environment for one of my project, and what shocked me suddenly about my website path issue for URL:

Its coming like this :

http://localhost/project/app/webroot/index.php/mydocuments/

While till now it was coming properly like:

http://localhost/project/mydocuments/

But I really don’t know, what settings altered to cause this path issue.

I have 3 default .htaccess files which CakePHP provides like my folder structure is, one htaccess file is in root folder (outside app folder), one htaccess file into app folder and one more into app/webroot folder as you’ve described here, but still its path is the issue..

  • 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-26T05:16:44+00:00Added an answer on May 26, 2026 at 5:16 am

    I am assuming you use Apache and your Apache docroot is points to your app/webroot folder.

    You need a .htaccess file in your webroot dir to make this work on Apache.

    <IfModule mod_rewrite.c>
       RewriteEngine On
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
    </IfModule>
    

    If your Apache docroot is your app root (not recommended) you need another .htaccess file like this in your app root:

    <IfModule mod_rewrite.c>
        RewriteEngine on
        RewriteRule    ^$    webroot/    [L]
        RewriteRule    (.*) webroot/$1    [L]
     </IfModule>
    

    Hope this helps!

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

Sidebar

Related Questions

We're using cakephp 1.2 version for one of our newly developing project, so would
I am using CakePHP and want to create a URL to a controller/view without
Using CakePHP 1.3 there are named parameters in the URL like .../name:value/... These are
Using cakephp: I create a website & after upload my site to main server
I am using cakePHP framework to build a website in which I want to
I'm using CakePHP's ACL component to manage permissions for my app. I have about
I'm using CakePHP for a small web app and on one form page there's
Using CakePHP: I have a many-to-one relationship, let's pretend it's many Leafs to Trees.
I am using CakePHP for my project, and I am generating XML views so
The project is developed using CakePHP. The page is of a news feed article.

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.