IZARIAM icon indicating copy to clipboard operation
IZARIAM copied to clipboard

When logging in attemps to redirect to ikariam/game

Open walle303 opened this issue 11 years ago • 24 comments

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

walle303 avatar Apr 01 '13 23:04 walle303

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

GTRsdk avatar Apr 02 '13 22:04 GTRsdk

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

walle303 avatar Apr 02 '13 22:04 walle303

@walle303 you edited wrong the .htaccess file.

ZZJHONS avatar Apr 10 '13 22:04 ZZJHONS

I never edited an .htaccess file

walle303 avatar Apr 10 '13 22:04 walle303

You put the .htaccess info when you run the install

ZZJHONS avatar Apr 10 '13 22:04 ZZJHONS

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

walle303 avatar Apr 10 '13 22:04 walle303

If it runs PHP and MySQL I think no problem

ZZJHONS avatar Apr 10 '13 22:04 ZZJHONS

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

walle303 avatar Apr 10 '13 22:04 walle303

This is my current file

Project: iZariam

File: .htaccess

Edited: 07/03/2012

By: ZZJHONS

Info: [email protected]

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 avatar Apr 10 '13 22:04 walle303

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

walle303 avatar Apr 10 '13 22:04 walle303

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

ZZJHONS avatar Apr 10 '13 22:04 ZZJHONS

Subfolder

walle303 avatar Apr 10 '13 22:04 walle303

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

ZZJHONS avatar Apr 10 '13 22:04 ZZJHONS

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

walle303 avatar Apr 10 '13 23:04 walle303

Still don't working?

ZZJHONS avatar Apr 10 '13 23:04 ZZJHONS

Should i put a trailing slash?

walle303 avatar Apr 10 '13 23:04 walle303

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

ZZJHONS avatar Apr 10 '13 23:04 ZZJHONS

Didnt work, Im going to try doing a reinstall

walle303 avatar Apr 10 '13 23:04 walle303

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

walle303 avatar Apr 10 '13 23:04 walle303

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: [email protected]

<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>

ZZJHONS avatar Apr 10 '13 23:04 ZZJHONS

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

walle303 avatar Apr 10 '13 23:04 walle303

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

ZZJHONS avatar Apr 10 '13 23:04 ZZJHONS

Ok

walle303 avatar Apr 10 '13 23:04 walle303

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

walle303 avatar Apr 10 '13 23:04 walle303