Welcome Guest, Not a member yet? Register   Sign In
Since 4 days trying to solve this: set up friendly urls in dreamhost getting a 404
#1

[eluser]jorgeakanieves[/eluser]
I´m in trouble...

I´ve a codeigniter 1.5.2 modular project in DREAMHOST and I want to set friendly urls in .htaccess...

When I go to a frienly url, there is a white page with: "No input file Specified" or "404 file not found"

For example this http://www.project.com/contact

But if I go to http://www.project.com/index.php/users/p...rm_contact all goes right

I´ve no problem in localhost(my local pc dev) with the friendly urls...

I´ve set up my .htaccess with this:

Code:
<ifmodule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    
    RewriteRule ^contact$ /myrootpathtoproject/index.php/users/public/form_contact [L]

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

and other parameters in config.php:

Code:
$config['index_page'] = "";
$config['uri_protocol']    = "REQUEST_URI" or $config['uri_protocol']    = "PATH_INFO";
$config['url_suffix'] = "";

What´s wrong???
#2

[eluser]jorgeakanieves[/eluser]
I´ve seen in the server error log this:
[Wed Nov 11 00:34:19 2009] [error] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.

I think is due by a redirection???


How could I do to avoid the redirection???
#3

[eluser]überfuzz[/eluser]
Code:
$config['uri_protocol']    = "REQUEST_URI" or $config['uri_protocol']    = "PATH_INFO";
Easy it down a bit. The same goes for the htaccess rules you're using...

Start out with this rewrite rule:
Code:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

And now try all the different protocols, one by one!
Code:
| 'AUTO'            Default - auto detects
| 'PATH_INFO'        Uses the PATH_INFO
| 'QUERY_STRING'    Uses the QUERY_STRING
| 'REQUEST_URI'        Uses the REQUEST_URI
| 'ORIG_PATH_INFO'    Uses the ORIG_PATH_INFO
|
*/
$config['uri_protocol']    = "AUTO";
#4

[eluser]jorgeakanieves[/eluser]
And where do I set the friendly urls?

does it correct?

Code:
RewriteEngine on
RewriteRule ^contact$ /myrootpathtoproject/index.php/users/public/form_contact [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

????

Code:
if I go to http://www.mydomain.com/index.php/users/public/form_contact all goes right

I need to create this url:

Code:
http://www.mydomain.com/contact




Theme © iAndrew 2016 - Forum software by © MyBB