-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
won't work #4
Comments
Can you post the URL of your site? Did you enable the plugin in the YOURLS admin panel and set a URL to redirect to on the plugin's page? |
the long URL is Arbeitsgerichtsverband.de, the short one is darbgv.de I use the plugin "Fallback URL" in order to redirect all not used shot-urls to the 404 page of my website. That works finde. Afterwards I installed "redirect Index", activated it in the admin panel and entered http://www.arbeitsgerichtsverband.de in the plugins config-page. However if you go to darbgv.de you won't be forwarded to Arbeitsgerichtsverband.de. I also tried to deactivate "fallback URL" to make sure that the problem ist not the parallel usage of both plugins. |
Sorry about my delayed response, GitHub didn't email me when you responded for some reason... Looking at the source of your page, I think the encoding or something has been messed up. If you look at line 2 here, there's some weird characters instead of ' or ". This code comes from line 17 of index.php, which should look like this https://github.com/tomslominski/yourls-redirect-index/blob/master/index.php#L17 . This could be an issue with either your editor (if you edited this file - you should use a plain text editor like TextEdit or Notepad), your FTP client (passive/active upload modes) or your webserver (something more specific with encoding). Try uploading the index.php file afresh, and if that doesn't help, let me know more about your host/FTP client etc. |
Thank you very much! I've downloaded the user/plugins/redirect-index/index.php directly from the web-interface of 1&1 where this is hosted. As far as I can tell it looks like it should. I re-uploaded it again using the browser in order to exclude errors from my FTP-client (FileZilla). Still no progress. I then have deactivated the plugin, removed all the files, uploaded them again, activated it, still the same issue, still the same weird characters. Help is very much appreciated. |
ah, I see what's happening. If you go to darbgv.de/index.html (which is what your web server defaults to), you get what you see in my screenshot above. If you go to darbgv.de/index.php, everything works as expected. You need to either remove index.html if you have such a file, or change the default file to index.php (your host will help you with this). Let me know if that's helped! |
Deleting the index.html fixed it. Thank you so much for your kind help! |
No worries! |
Hi there,
I'm new to github (and no native english speaker) so i hope i don't mess up with too many rules here.
I've downloaded and activated this plugin, however the redirect won't work. I've entered the target url in the format http://www.exampleurl.de. I already tried to deactivate all other plugins. No progress.
I've put the folder in /user/plugins and copied index.php from there to the root directory of yourls.
Hast anyone any suggestions how to fix this?
Thank you all very much in advance.
The text was updated successfully, but these errors were encountered: