WebFaction
Community site: login faq

I'm trying to put up a demo site for a client and I cant get url rewriting to work properly.

The site is located at mysite.com/client. The home page works ok, but when I try mysite.com/client/admin it fails. It works on mysite.com/client/index.php/admin but that's far from ideal :S

My .htaccess is as follows:

<IfModule mod_rewrite.c>
    RewriteEngine on

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>

<IfModule !mod_rewrite.c>
    # If we don't have mod_rewrite installed, all 404's
    # can be sent to index.php, and everything works as normal.

    ErrorDocument 404 /index.php
</IfModule>

And my config.php is set to:

$config['index_page'] = "";
$config['uri_protocol'] = "AUTO";

I've tried every config I've come across on the web with no success.

asked 19 Dec '10, 22:31

iign
16148
accept rate: 0%

edited 19 Dec '10, 22:33

Can you point us to the actual site and files you are referring to? We need to take a look at the account to see what type of application this is, and what the directory structure is from rewrite's point-of-view. Thanks!

We tried searching the account ourselves but found many, many config.php and .htaccess files.

(19 Dec '10, 23:24) ryans ♦♦

My account is same as my username here. The site is ign.com.uy (WP) and the CodeIgniter demo is ign.com.uy/bruster/

The config is located at webapps/bruster/system/application/config/config.php

The .htaccess is at webapps/bruster/.htaccess Thanks!

(20 Dec '10, 04:49) iign

".htdocs" won't get the job done - the rewrite rules need to be in a file called ".htaccess"

(20 Dec '10, 05:09) tie

Sorry, I meant htaccess! I'm still asleep...

(20 Dec '10, 05:20) iign
1

You should try replacing "RewriteRule ^(.)$ index.php/$1 [L]" with "RewriteRule ^(.)$ index.php?$1 [L]".

Another thing you may need is a "RewriteBase /" line right after the "RewriteEngine On" statement.

If this doesn't help, I'd suggest opening a support ticket.

(20 Dec '10, 05:34) tie

This didn't do the trick. I'll open a ticket when I get home. Thanks.

(20 Dec '10, 06:23) iign

any update on this problem? did the ticket solved it? I am not yet on WebFaction and Codeigniter is a prerequisite for me, so I would like to know if it works without problem... thanks

(26 Feb '12, 05:08) robertotra

Yes,this was marked as resolved.

We have many users running CodeIgniter in their accounts, so you shouldn't have any issues. If you do, then we are here 24/7 to help with any questions along the way.

(26 Feb '12, 05:30) iliasr ♦♦
showing 5 of 8 show 3 more comments
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×262
×75
×8
×1

question asked: 19 Dec '10, 22:31

question was seen: 7,704 times

last updated: 26 Feb '12, 05:30

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM