Welcome Guest, Not a member yet? Register   Sign In
htaccess works on home server but not on hosting account
#19

[eluser]Ludatha[/eluser]
[quote author="Daniel Moore" date="1252997152"]If it didn't work, then you didn't try all combinations of alternative methods mentioned.

I have yet to find a host that I can't configure with some combination of the code given, as long as the host has mod_rewrite enabled.

If you would like me to get the .htaccess file working for you, I will do so for a fee. Contact me by PM and we'll make the arrangements.[/quote]


I fixed it!!!!! I think...

Thank you very much for your time and code Smile
The problem was in my config file I needed to change $config['uri_protocol'] to "QUERY_STRING";

One slight problem, I host a website for a friend, and it doesn't work.
it is in a directory jessicademattos and the website is www.jessicademattos.com

It says 403 - Forbidden Error, how do I fix that before she finds out?


my htaccess is
Code:
allow from all
Options -Indexes
Options +FollowSymLinks
Options -MultiViews
DirectoryIndex index.php

<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteBase /
  RewriteCond %{HTTP_HOST} ^www\.ludatha\.com$ [NC]
  RewriteRule ^(.*)$ http://ludatha.com/$1 [L,R=301]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php?/$1 [NC,L,QSA]
</IfModule>

<IfModule !mod_rewrite.c>
  ErrorDocument 404 index.php
</IfModule>

I removed the comments because otherwise I would run out of space :O

- Adam


Messages In This Thread
htaccess works on home server but not on hosting account - by El Forum - 09-15-2009, 11:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB