Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.htaccess issues on setup/installation #12

Open
ghost opened this issue Aug 15, 2011 · 3 comments
Open

.htaccess issues on setup/installation #12

ghost opened this issue Aug 15, 2011 · 3 comments
Assignees

Comments

@ghost
Copy link

ghost commented Aug 15, 2011

I had a few problems on installation and setup with 500 errors inside of .htaccess when using RackSpace hosting.

To fix this I simply added "RewriteBase /" to all 3 of Cake's .htaccess files.

/.htaccess

RewriteEngine On
RewriteBase /
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) /app/webroot/$1 [L]

/app/.htaccess

RewriteEngine on
RewriteBase /
RewriteRule ^$ webroot/ [L]
RewriteRule (.*) webroot/$1 [L]

/app/webroot/.htaccess

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

@gotoitguy
Copy link

What errors did you encounter for the ISE500?
They would be helpful in determining the issue you've encountered.

@ghost
Copy link
Author

ghost commented Aug 15, 2011

Not sure, I couldn't debug the issue.

I did some searching on Google about Cake & htaccess 500 errors and RewriteBase kept coming up.

I'm using RackSpace shared hosting, so everything should be pretty universal.

@prakashkumar
Copy link

Remove "RewriteBase /" line from all .htaccess file
and change the line

base;?>/install/database-config

instead of /install/database-config
in /app/view/installer/start.ctp

@Datawalke Datawalke self-assigned this Mar 30, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants