Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Permalink error - redirect oddity
Avatar
Elsa Elsa
Member
Free Members
sp_UserOfflineSmall Offline
Dec 3, 2019 - 11:58 am

I stumbled on an oddity...

You can add as many "forum" in there as you want and it will still resolve:

https://www.elsaelsa.com/forum/forum/forum/forum/forum/lounge/

https://www.elsaelsa.com/forum/forum/forum/forum/forum/relationships/


I asked my webhost to look into this and he responded:

After looking at the Apache configuration and site's htaccess, I did not see any redirects that would cause the issue you mentioned with the /forum URL. While I did reproduce the issue when using elsaelsa.com/forum/forum/astrology/ for example, it seems to only affect URLs with /forum, which indicates it is related to the Simplepress forum plugin itself. I tested a normal wordpress blog entry and it is redirecting normally as you can see here:

[ekloeckner@ekloeckner ~]$ curl -I https://www.elsaelsa.com/astrology/astrology/saturn-pluto-collect-your-bones/
HTTP/1.1 301 Moved Permanently
X-Redirect-By: WordPress
Location: https://www.elsaelsa.com/astrology/saturn-pluto-collect-your-bones/

The redirect for the /forum URLs is handled by PHP code as indicated by the "X-Redirect-By: WordPress" header, and as I mentioned the Apache configuration and htaccess are not causing it. I would suggest contacting the support department of the plugin developer if it is available, and would also see if there are any settings that can be configured in the Simplepress plugin interface. It would likely be related to permalinks. Let me know if you can provide any further information, or if you have any other questions or concerns. Thank you.

Can you help?
Thanks!

 
Avatar
SP Community Support
SP Moderator
sp_UserOfflineSmall Offline
Dec 3, 2019 - 12:07 pm

That's actually a WordPress thing I believe.  WordPress tries to resolve things to the best of its ability.  In this case it recognizes that there is a page called FORUM and will resolve to that if FORUM/FORUM/FORUM... doesn't exist.

You can try that with any page.  For some pages it will only do two levels but for others it will do more.  I have no idea what its logic is when trying to resolve to a page when something doesn't exist...

Sometimes I wonder if its a caching thing too where the cache is trying to be smart...

Avatar
Elsa Elsa
Member
Free Members
sp_UserOfflineSmall Offline
Dec 3, 2019 - 12:20 pm

Well you're right!
Thanks so much. I can cross this issue off my list!

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 643
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 616
Members: 17343
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10117
Posts: 79590