SEO Friendly Urls

adam estes wtymdjs at gmail.com
Sun Mar 4 05:18:53 UTC 2012


Actually, that fixed -most- of it. Butttt

FG152/index.php/cron/graburls/999182b003023a35c327db371a74a85f

Gives a 404 not found :(

On Sat, Mar 3, 2012 at 10:27 PM, adam estes <wtymdjs at gmail.com> wrote:
> Aha! That did it :)
>
> Thank you.
>
> On Sat, Mar 3, 2012 at 9:33 PM, Cliff Wells <cliff at develix.com> wrote:
>> On Sat, 2012-03-03 at 20:30 -0500, adam estes wrote:
>>> I'm attempting to use Nginx to server a CodeIgniter Script.
>>>
>>> Code Igniter uses SEO Friendly scripts (AKA, only uses / instead of ?)
>>>
>>> This works fine when I try and use it on Apache. Trying to setup my
>>> own VPS with Code Igniter through NGINX only leans to a pain.
>>>
>>> The server is setup with the base folder being a phpbb form, and a
>>> codeigniter script in the folder /fg152/
>>>
>>> I'm trying to get the nginx to recognize that index.php/login is
>>> supposed to be a query for code igniter, not a file of its own.
>>>
>>> I tried every configuration on this link.
>>>
>>> http://codeigniter.com/forums/viewthread/90231/
>>>
>>> My current Nginx conf looks like this.
>>>
>>>
>>>                 location /fg152/ {
>>>                         root /home/sites/domain/fg152/;
>>>                         index index.php;
>>>                         try_files $uri $uri/ /fg152/index.php;
>>>
>>>                 }
>>
>>
>>> The images are located at /fg152/application/views/images/
>>
>>
>> Try this instead:
>>
>>                location /fg152 {
>>                         root /home/sites/domain;
>>                         index index.php;
>>                         try_files $uri $uri/ /fg152/index.php;
>>                 }
>>
>> Remember that the location is appended to the root, so your
>> configuration would lead to /home/sites/domain/fg152/fg152, which I
>> don't think is what you intended.
>>
>> Regards,
>> Cliff
>>
>> _______________________________________________
>> nginx mailing list
>> nginx at nginx.org
>> http://mailman.nginx.org/mailman/listinfo/nginx



More information about the nginx mailing list