MyBB Community Forums

Full Version: Image Redirect Loop
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I decided to make threads as /thread/(SEO friendly url), users as /user/blah and forums as /forum/blah.

This worked as you can see by the example:
http://gamingforums.net/thread/Destiny-G...633#pid633 *see edit

However all images are probably using images/blah instead of bburl/images/blah, or perhaps another reason and images are stuck in a redirect loop and do not show.

The average avatar shows
http://gamingforums.net/index.php/index....1405543585
same for all other resources

please advise, is there a quick fix for every issue that could arise or am I going to *have* to stop using a "directory hack"

EDIT: Didn't want to leave a not functioning thing up live. So it's removed publicly, but basically every image is stuck in a redirect loop, except the ones directly used in template (bburl/images/blah). The ones using $post['stars'] and stuff are having issues.
We'd need to see what rewrite rules you're using to have any chance of suggesting anything.
(2014-08-24, 01:40 PM)Matt. Wrote: [ -> ]We'd need to see what rewrite rules you're using to have any chance of suggesting anything.
                rewrite ^/([^&]*)&(.*)$ http://gamingforums.net/$1?$2 permanent;
                rewrite ^/((?i)sitemap-([^./]+)\.xml)$ /misc.php?google_seo_sitemap=$2;
                rewrite ^/forum/((?i)([^./]+))$ /forumdisplay.php?google_seo_forum=$2;
                rewrite ^/thread/((?i)([^./]+))$ /showthread.php?google_seo_thread=$2;
                rewrite ^/user/((?i)([^./]+))$ /member.php?action=profile&google_seo_user=$2;

I am using nginx, and Google SEO for the frontend functionality.
The best solution is to stick with - instead of /.

Read the documentation regarding virtual directory structures, and https://github.com/frostschutz/MyBB-Goog.../issues/43
I'm really fond of /threads/blah, I think it's much neater. Is it not possible with complete functionality somehow?

I have issues with images, stars, avatars and things like that. What changes would I need to make in that sense?
1) Your webserver configuration is broken, particularly in regards to that index.php/index.php redirect. It's not something I can help you with.

2) You didn't read the documentation that came with the plugin. I already pointed you to the minimum changes necessary (see earlier reply).

I added support for / in URLs because people kept requesting it; that does not mean I can solve all issues revolving MyBB's relative links. If you choose this scheme, finding and fixing issues that arise because of it is your job. You have to figure this out for yourself.

Please stop sending me messages about it. I know it doesn't work great. I keep telling people that it's not recommended whatsoever. If you know better, it's your problem, not mine.