Jump to content

Topic on Extension talk:UrlShortener

I've got one short URL that refuses to redirect properly

2
Summary by Jonathan3

My own fault. The extension works perfectly.

Jonathan3 (talkcontribs)

It redirects to my home page (<code>example.com/</code>) instead of the specific wiki page. The full URL of that wiki page is stored correctly in the database, just like the others before and after it. It doesn't go to the "Sorry, the URL you are looking for has not been found." error page.

The only thing that's notable is that it's ID is 100, but I can't imagine that being the cause.

I'll keep thinking about it, but if you have any ideas that would be great.

Jonathan3 (talkcontribs)

It was my own fault. I'd messed up an .htaccess redirect ages ago and hadn't noticed.

I had to change

#Same for short.uk/a as it doesn't get set automatically by the extension
RewriteRule a http://www.long.co.uk/ [R=301,L]

to

RewriteRule ^a$ http://www.long.co.uk/ [R=301,L]