Yourls: Redirect doesn麓t work -- 404 Not Found

Created on 20 Nov 2015  路  3Comments  路  Source: YOURLS/YOURLS

I recently discover a problem with my redirecting in yourls. When I try to access an short-URL i麓m getting an 404.
I麓m able to generate new Short-Urls but there is no redirection done.
In my apache-access.log i see a normal GET for the short-Url. No messages in error.log.

My config:

cat config.php

/* MySQL database username _/
define( 'YOURLS_DB_USER', 'username' );
/_* MySQL database password _/
define( 'YOURLS_DB_PASS', '_
_' );
/_* The name of the database for YOURLS _/
define( 'YOURLS_DB_NAME', 'yourls' );
/_* MySQL hostname.
define( 'YOURLS_DB_HOST', 'localhost' );
/
* MySQL tables prefix */
define( 'YOURLS_DB_PREFIX', 'yourls_' );

define( 'YOURLS_SITE', 'http://mysite.de' );
define( 'YOURLS_HOURS_OFFSET', +2 );
define( 'YOURLS_LANG', '' );
define( 'YOURLS_UNIQUE_URLS', false );
define( 'YOURLS_PRIVATE', true );

define( 'YOURLS_COOKIEKEY', 'i](~)sAd)LYsdfkjnkljasnfsepe248248uq1}2#-G47somethingverylong' );
$yourls_user_passwords = array(
'userone' => 'phpass:!2a!08!.raDlasdkjfnasljfnsalkfjnsaiua' /* Password encrypted by YOURLS _/ ,
'usern2' => 'phpass:!2a!08!EqxhzNd7jTsIn6rybI7HAusvII1H9i8jRqq2ShtQfX.gfmteLCSZS' /_ Password encrypted by YOURLS */ // You can have one or more 'login'=>'password' lines
);

define( 'YOURLS_DEBUG', true );

define( 'YOURLS_URL_CONVERT', 36 );
$yourls_reserved_URL = array(
'porn', 'faggot', 'sex', 'nigger', 'fuck', 'cunt', 'dick', 'gay',
);


Most helpful comment

Fixed it:
added to my apache-Configuration:

AllowOverride All

Seems like the last apache-update disabled this and so .htaccess was not used. Thanks for the hint.

All 3 comments

Do you have the .htaccess setup in the root of the folder? https://github.com/YOURLS/YOURLS/wiki/.htaccess

Yes, my .htaccess in Document Root looks exactly like the one in the website.

Fixed it:
added to my apache-Configuration:

AllowOverride All

Seems like the last apache-update disabled this and so .htaccess was not used. Thanks for the hint.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Alan-Liang picture Alan-Liang  路  6Comments

ploedman picture ploedman  路  4Comments

LaughterOnWater picture LaughterOnWater  路  5Comments

Noiden picture Noiden  路  7Comments

LeoColomb picture LeoColomb  路  3Comments