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.
/* 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',
);
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.
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.