You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, i installed yourls on a subdomain of one of my domains and it worked but when i reinstalled it on a new domain and make a short url it just redirects to the main page where you can make a url
I'm not sure how you expect anyone to help without details. The YOURLS version alone doesn't pinpoint anything, and the described behavior is what happens when YOURLS doesn't recognize a shorturl keyword. It could also be caused by a plugin.
So, this happends when with every short url either old one new one or even the created one's from yourls itself and it worked on a subdomain on of mine domains and when i reinstalled everything on the new domain it didnt work anymore but i can delete all plugins maybe it works then, and yes the url's are in the database too
here are the debug logs when i make a url Connected to database tinyd_it on localhost SQL perform: SELECT option_name, option_value FROM yourls_options WHERE 1=1 (0.00087 s) Check for new version: no SQL perform: SELECT timestampFROM yourls_url WHEREip= 'IP' ORDER BYtimestampDESC LIMIT 1 (0.00174 s) SQL perform: SELECT * FROMyourls_urlWHEREurl= 'https://pringelsdc.de' (0.00040 s) SQL perform: SELECT * FROMyourls_urlWHEREkeyword= '1' (0.00051 s) SQL perform: UPDATE yourls_options SET option_value = '2' WHERE option_name = 'next_id' (0.00106 s) SQL perform: INSERT INTOyourls_url (keyword, url, title, timestamp, ip, clicks) VALUES('' '' '' '' '' 0); (0.00354 s)
and here when accesing the shorten link
Connected to database tinyd_it on localhost SQL perform: SELECT option_name, option_value FROM yourls_options WHERE 1=1 (0.00231 s) Check for new version: no
Turns out every link redirects to the main page so i probably broke something haha
My guess is an error in the server configuration, that isn't passing the keyword along properly. If YOURLS doesn't recognize a keyword, it redirects to YOURLS_SITE:
I’m experiencing the same issue where old links work in the application, but all new links redirect to the homepage. I tried completely reinstalling the application on different hosting, but the problem persists. After installation, the application has 3 pre-created links that redirect correctly. However, when I create links myself, they only redirect to the homepage.
Thank you in advance for your help in resolving this issue.
Activity
dgw commentedon Mar 27, 2024
This sounds like a misconfiguration.
I'm not sure how you expect anyone to help without details. The YOURLS version alone doesn't pinpoint anything, and the described behavior is what happens when YOURLS doesn't recognize a shorturl keyword. It could also be caused by a plugin.
Prinkels22 commentedon Mar 27, 2024
So, this happends when with every short url either old one new one or even the created one's from yourls itself and it worked on a subdomain on of mine domains and when i reinstalled everything on the new domain it didnt work anymore but i can delete all plugins maybe it works then, and yes the url's are in the database too
Prinkels22 commentedon Mar 27, 2024
here are the debug logs when i make a url
Connected to database tinyd_it on localhost SQL perform: SELECT option_name, option_value FROM yourls_options WHERE 1=1 (0.00087 s) Check for new version: no SQL perform: SELECTtimestampFROM yourls_url WHEREip= 'IP' ORDER BYtimestampDESC LIMIT 1 (0.00174 s) SQL perform: SELECT * FROMyourls_urlWHEREurl= 'https://pringelsdc.de' (0.00040 s) SQL perform: SELECT * FROMyourls_urlWHEREkeyword= '1' (0.00051 s) SQL perform: UPDATE yourls_options SET option_value = '2' WHERE option_name = 'next_id' (0.00106 s) SQL perform: INSERT INTOyourls_url(keyword,url,title,timestamp,ip,clicks) VALUES('' '' '' '' '' 0); (0.00354 s)and here when accesing the shorten link
Connected to database tinyd_it on localhost SQL perform: SELECT option_name, option_value FROM yourls_options WHERE 1=1 (0.00231 s) Check for new version: noTurns out every link redirects to the main page so i probably broke something haha
dgw commentedon Mar 28, 2024
My guess is an error in the server configuration, that isn't passing the keyword along properly. If YOURLS doesn't recognize a keyword, it redirects to
YOURLS_SITE:YOURLS/yourls-go.php
Lines 26 to 27 in 43c5855
Alexander6766 commentedon Aug 11, 2024
Hello,
I’m experiencing the same issue where old links work in the application, but all new links redirect to the homepage. I tried completely reinstalling the application on different hosting, but the problem persists. After installation, the application has 3 pre-created links that redirect correctly. However, when I create links myself, they only redirect to the homepage.
Thank you in advance for your help in resolving this issue.
ozh commentedon Aug 12, 2024
@Alexander6766 please see https://yourls.org/docs/guide/troubleshooting/first-steps
amnya commentedon Nov 23, 2024
Hello, did you get this issue resolved? The same is happening with my installation though my configurations seem to be correct.