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

  • Home
  • SEARCH
  • 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 8398621
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T21:05:51+00:00 2026-06-09T21:05:51+00:00

I have developed a CakePHP application that I have now deployed to my production

  • 0

I have developed a CakePHP application that I have now deployed to my production server, however pretty URLs do not work.

Here is my Apache vhost for the site:

<VirtualHost *:80>
       ServerName site.com
    ServerAdmin support@site.com

    DocumentRoot /home/whitey/sites/site.com/htdocs/app/webroot/
    <Directory />
        Options FollowSymLinks
        AllowOverride None
    </Directory>
    <Directory /home/whitey/sites/site.com/htdocs/app/webroot/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        allow from all
    </Directory>

    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/usr/lib/cgi-bin">
        AllowOverride None
        Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
        Order allow,deny
        Allow from all
    </Directory>

    ErrorLog /home/whitey/sites/site.com/logs/error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn

    CustomLog /home/whitey/sites/site.com/logs/access.log combined

    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

</VirtualHost>

As you can see, the document root is set to the webroot directory in my app. Inside that directory, there is this .htaccess file:

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

This entire setup works perfectly with my local machine running XAMPP, so I’m not sure what’s wrong. The only thing I can think of is the rewrite rules aren’t taking effect because of a setting in my vhost. But I haven’t got enough knowledge of the Apache config files to know how to fix it.

Thanks.

  • 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-09T21:05:52+00:00Added an answer on June 9, 2026 at 9:05 pm

    Nevermind, I’m an idiot. I forgot to enable the mod_rewrite module for Apache when I set it up last night. Here’s the fix:

    sudo a2enmod rewrite
    sudo service apache2 restart
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have developed a CakePHP application that does basic CRUD on a series of
I have developed a Java server using Eclipse that accepts TCP socket connection from
Have developed a small Windows application using SQL Server as its database. I need
I have developed a web application that uses the jQuery DateTimePicker by Trent Richardson
I have developed a grails application that stores a great deal of information. Currently,
I have developed an application that is to be run on android Tablet as
I have a web application developed in CakePHP and I use Routing.prefixes to access
I have a site developed in cakephp 2 and I want that into my
I have developed a project with cakephp-1.3.10 . Now I want to upgrade it
I have a CakePHP website that's been working great. I just developed a new

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.