Closed Thread
Results 1 to 4 of 4

Thread: mod_rewrite

  1. #1
    sampuu is offline x10Hosting Member sampuu is an unknown quantity at this point
    Join Date
    Aug 2008
    Location
    Based in Edinburgh, Scotland
    Posts
    27

    mod_rewrite

    I'm trying to use CodeIgniter to... well, ignite my code :laugh:
    My problem is that the htaccess file included with CodeIgniter isn't working.

    Code:
    RewriteEngine on
    RewriteCond $1 !^(index\.php|images|robots\.txt)
    RewriteRule ^(.*)$ /index.php/$1 [L]
    That code is supposed to mean that anyone going to the directory (in this case "/alpha") should be presented with "/alpha/index.php/". Or another example, "/alpha/home" should go to "/alpha/index.php/home".
    It doesn't. Instead I get given an x10Hosting 404 page. Is mod_rewrite enabled and can anyone see a problem with that htaccess?
    By the way, I'm on Absolut with Ad Free hosting.
    Last edited by sampuu; 09-05-2008 at 04:03 PM.

    Clicking the above image takes you to my website.

  2. #2
    Corey's Avatar
    Corey is offline VPS Migration Professional Corey is a glorious beacon of lightCorey is a glorious beacon of light
    Join Date
    Dec 2004
    Location
    Northfield, NH
    Posts
    17,151

    Re: mod_rewrite

    Please provide a link to where you are using it.

    -Corey
    Corey Arbogast | CEO
    █ 888-X10-9668 - corey[@]x10hosting.com
    x10Hosting - Giving Away Hosting Since 2004
    Premium Hosting | VPS Services

  3. #3
    sampuu is offline x10Hosting Member sampuu is an unknown quantity at this point
    Join Date
    Aug 2008
    Location
    Based in Edinburgh, Scotland
    Posts
    27

    Re: mod_rewrite

    Last edited by sampuu; 09-06-2008 at 12:13 PM.

    Clicking the above image takes you to my website.

  4. #4
    Brandon's Avatar
    Brandon is offline Former Senior Account Rep Brandon is on a distinguished road
    Join Date
    Jun 2006
    Location
    Tewksbury, MA
    Posts
    9,589

    Re: mod_rewrite

    Try this.

    Code:
    RewriteEngine on
    RewriteCond $1 !^(index\.php|images|robots\.txt)
    RewriteRule ^(.*)$ /alpha/index.php/$1 [L]
    Thanks,
    Brandon Long

Closed Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers