ZZJHONS / IZARIAM

iZariam is a Devlopment Game based on Ikariam
http://ikariam.zzjhons.com/
30 stars 39 forks source link

When logging in attemps to redirect to ikariam/game #17

Open walle303 opened 11 years ago

walle303 commented 11 years ago

The folder ikariam/game does not exist/has not been created. Is there any way to fix this issue? When encountering a server error like non existing account it gives me another page that doesn't exist ikariam/main/error

GTRsdk commented 11 years ago

What's your configuration file look like? And is it running from the root web directory?

walle303 commented 11 years ago

It is not running from the root Its in /ikariam Should i edit the config? i only used the installer

ZZJHONS commented 11 years ago

@walle303 you edited wrong the .htaccess file.

walle303 commented 11 years ago

I never edited an .htaccess file

ZZJHONS commented 11 years ago

You put the .htaccess info when you run the install

walle303 commented 11 years ago

Let me re install it, Currently i don't have the files on my server Files are copying now If it makes any difference i'm self hosting it on an Ubuntu 12.10 server

ZZJHONS commented 11 years ago

If it runs PHP and MySQL I think no problem

walle303 commented 11 years ago

I have done an install, After signing up it still redirects to Ikariam/game/ What .htcaccess file do i edit

walle303 commented 11 years ago

This is my current file

Project: iZariam

File: .htaccess

Edited: 07/03/2012

By: ZZJHONS

Info: zzjhons@gmail.com

``` RewriteEngine On RewriteBase / ## Canonicalize codeigniter URLs RewriteRule ^(default_controller(/index)?|index(\.php)?)/?$ / [L,R=301] RewriteRule ^(.*)/index/?$ $1 [L,R=301] # Removes trailing slashes (prevents SEO duplicate content issues) RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.+)/$ $1 [L,R=301] # Enforce www # If you have subdomains, you can add them to the list using the "|" (OR) regex operator #RewriteCond %{HTTP_HOST} !^(www|sub1|sub2|sub3|beta|izariam) [NC] #RewriteRule ^(.*)$ http://localhost/$1 [L,R=301] # Enforce NO www #RewriteCond %{HTTP_HOST} ^www [NC] #RewriteRule ^(.*)$ http://localhost/$1 [L,R=301] # 'system' can be replaced if you have renamed your system folder. RewriteCond %{REQUEST_URI} ^system.* RewriteRule ^(.*)$ /index.php/$1 [L] # Checks to see if the user is attempting to access a valid file, such as an image or css document, if this isn't true it sends the request to index.php RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] ```

<IfModule !mod_rewrite.c>

# Without mod_rewrite, route 404's to the front controller
ErrorDocument 404 /index.php

walle303 commented 11 years ago

Here is the 404 Not Found

The requested URL /Ikariam/game was not found on this server.

Apache/2.2.22 (Ubuntu) Server at localhost Port 80

ZZJHONS commented 11 years ago

You are installing it on a subdomain, a subfolder or root?

walle303 commented 11 years ago

Subfolder

ZZJHONS commented 11 years ago

Then try to edit this: RewriteBase / To: RewriteBase /yoursubfolder

walle303 commented 11 years ago

Done, Still redirects to that folder Should i restart Apache2? EDIT: Restarted, No effect

ZZJHONS commented 11 years ago

Still don't working?

walle303 commented 11 years ago

Should i put a trailing slash?

ZZJHONS commented 11 years ago

Oh sorry!!! Yes!: RewriteBase /yoursubfolder/

walle303 commented 11 years ago

Didnt work, Im going to try doing a reinstall

walle303 commented 11 years ago

Didnt work I can sign up then it redirects And i get the sign up email

ZZJHONS commented 11 years ago

Try this "new" version: https://github.com/NewOpportunity/Nuria

PD: That's my .htaccess file full working

 # Project: Nuria
 # File: .htaccess & install/include/htaccess.tpl & install/include/htaccess.php
 # Edited: 30/09/2012
 # By: Ink2Inv
 # Info: izariam@gmail.com

<IfModule mod_rewrite.c>

    RewriteEngine On
    RewriteBase /nuria/

    ## Canonicalize codeigniter URLs

    RewriteRule ^(default_controller(/index)?|index(\.php)?)/?$ / [L,R=301]
    RewriteRule ^(.*)/index/?$ $1 [L,R=301]

    # Removes trailing slashes (prevents SEO duplicate content issues)
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.+)/$ $1 [L,R=301]

    # Enforce www
    # If you have subdomains, you can add them to the list using the "|" (OR) regex operator
    #RewriteCond %{HTTP_HOST} !^(www|sub1|sub2|sub3|beta|izariam) [NC]
    #RewriteRule ^(.*)$ http://localhost/$1 [L,R=301]

    # Enforce NO www
    #RewriteCond %{HTTP_HOST} ^www [NC]
    #RewriteRule ^(.*)$ http://localhost/$1 [L,R=301]

    # 'system' can be replaced if you have renamed your system folder.
    RewriteCond %{REQUEST_URI} ^system.*
    RewriteRule ^(.*)$ /index.php/$1 [L]

    # Checks to see if the user is attempting to access a valid file, such as an image or css document, if this isn't true it sends the request to index.php
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php/$1 [L]

</IfModule>

<IfModule !mod_rewrite.c>

    # Without mod_rewrite, route 404's to the front controller
    ErrorDocument 404 /index.php

</IfModule>
walle303 commented 11 years ago

I have already tried the new version, It has a different issue I have posted there aswell

ZZJHONS commented 11 years ago

Maybe I can revise it other day, not now. Sorry.

walle303 commented 11 years ago

Ok

walle303 commented 11 years ago

Things i have done so far... Edited .htaccess file Chmod the entire folder to 777 Chown the entire folder to www-data Moved files around and renamed them Reinstalled many times