Skip to content
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

Works with yourls 1.7.2, not with 1.8.1 #15

Open
imtrobin opened this issue Aug 16, 2021 · 2 comments
Open

Works with yourls 1.7.2, not with 1.8.1 #15

imtrobin opened this issue Aug 16, 2021 · 2 comments

Comments

@imtrobin
Copy link

Hi, I have installed this plugin fine on a very old yourls installation (1.7.2) many years ago. I tried today on a new site using yourls 1.8.1, and found it does not work. The short url redirects to the install page everytime. I'm on the same shared webserver, just a different domain. Old one works (and still working), new one doesn't.

@drbeco
Copy link

drbeco commented Aug 28, 2022

I have updated to 1.9.1 and it seems to be working just fine.

Stats won't work, though.

@drbeco
Copy link

drbeco commented Aug 28, 2022

Update:

I solved the problem with stats by changing the .htaccess to:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^([0-9A-Za-z]+\+all)/?$ http://another.domain.ex/$1 [L] 
RewriteRule ^([0-9A-Za-z]+\+)/?$ http://another.domain.ex/$1 [L] 
RewriteRule ^([0-9A-Za-z]+)/?$ http://another.domain.ex/$1 [L]
</IfModule>

I'm still trying to figure out how to work peacefully with wordpress. But that is another thread. ( https://stackoverflow.com/questions/36223685/how-can-wordpress-and-yourls-peacefully-coexist-at-the-root-level )

Reference: #11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants