× Here you can get community support related to ReDJ.

Case is always sensitive IN RdDJ even when unchecked

  • pintobuck
  • Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 7 months ago #6242 by pintobuck
Thank you for creating a great redirect component.

ReDJ works for me, except that my redirected URLs are case sensitive, even when Case Sensitive is unchecked.
This is what happens:
1) I created a redirect in ReDJ, Case Sensitive is unchecked.
2) I enter the OLD URL into a browser, and the redirect works fine.
3) I change the case of any letter in the OLD URL and the redirected URL is broken.

Here is an example:
In ReDJ
From URL: ^/backgroundcheckForum/
To URL: backgroundsearch.com/background-search-forum/{pathltrim /backgroundcheckForum/}{queryfull}
Case Sensitive is unchecked.

(Please excuse my all caps in some comments below. All caps are used to distinguish my comments from the URLs.)

Results:
OLD URL entered into the browser:
backgroundsearch.com/backgroundcheckForum/General-Immigration-Topics/Tourist-entry-into-the-USA-with-a-criminal-record
NOTICE the capital F in the word “Forum”.
REDIRECTED RESULTS
backgroundsearch.com/background-search-forum/General-Immigration-Topics/Tourist-entry-into-the-USA-with-a-criminal-record
THIS WORKED FINE.

Change the case of f to lower case in the URL word "Forum" when entered into the browser.
Enter this into the browser:
backgroundsearch.com/backgroundcheckforum/General-Immigration-Topics/Tourist-entry-into-the-USA-with-a-criminal-record
NOTICE the small f in forum.
THAT GETS REDIRECTED TO
backgroundsearch.com/background-search-forum//backgroundcheckforum/General-Immigration-Topics/Tourist-entry-into-the-USA-with-a-criminal-record
WHICH SHOWS 404 NOT FOUND
Notice that the redirected URL contains a double back slash in the middle of the URL: "forum//backgroundcheckforum"

Thank you for any suggestions:

Please Log in or Create an account to join the conversation.

  • pintobuck
  • Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 7 months ago #6243 by pintobuck
More info:
I have some important backlinks that go to my old forum address:
backgroundsearch.com/backgroundcheckForum/ + categories & article names.

I would like to redirect them to my new forum location:
backgroundsearch.com/background-search-forum/ + categories & article names.

So basically, I need to clip out a section of the incoming old URLs (remove "backgroundcheckForum")
and replace it with the a new section the the URL (insert "background-search-forum").

As I read through the ReDJ instructions, I think that ReDJ should be able to do that, but I have not figured it out yet.

Please Log in or Create an account to join the conversation.

  • pintobuck
  • Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 7 months ago #6244 by pintobuck
A post in this forum seems to have a similar answer to my solution above. See Redirect only part of an alias of alias .

From URL: ^/aliasA/
To URL: {scheme}://{siteurl}/aliasB/{pathltrim /aliasA/}{queryfull}
Request only: true (checked)

That works, but "pathtrim" still makes the URL case sensitive. Any different case in the From URL breaks the redirection and creates a double backslash in the To URL.

When I get a double backslash // in the middle of the To URL, I wonder if a loop is the problem, and do I need a skip command like in this post. indeepblue created the topic: Redirection

From URL: /123-xyz\.html$
To URL: {scheme}://{siteurl}/realcategory/123-xyz.html
Request only:true (checked)
Skip: /realcategory/123-xyz\.html$


(Preview did not work in this forum for this post, so I hope it reads ok.)

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago - 6 years 7 months ago #6254 by admin
Hi and sorry for delay (just back from holidays).

Can you check and tell me your MySQL database collation?

The reason is because rules are checked through MySQL queries, so if the collation is case insensitive (e.g. like latin1_general_ci) the case will be ignored.

Thanks,
Luigi
Last edit: 6 years 7 months ago by admin.

Please Log in or Create an account to join the conversation.

  • pintobuck
  • Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 7 months ago #6265 by pintobuck
Thank you for the reply. Here is my database information.

Database Version 5.5.35-MariaDB-1~squeeze
Database Collation latin1_swedish_ci
Database Connection Collation utf8mb4_general_ci
PHP Version 7.0.98-servage1
Web Server Apache

It appears that my website hosting service is using latin1_general_ci.
Do you have a recommendation?

Please Log in or Create an account to join the conversation.

  • pintobuck
  • Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 7 months ago - 6 years 7 months ago #6266 by pintobuck
I used Akeeba Admin Tools to change Joomla Database Collation to utf8mb4_general_ci. I cleared all cache and SEF URLs, however redirect is still case sensitive, with the same results as described above. Should I change Joomla database collation to UTF-8 multibyte? Thank you for suggestions.
Last edit: 6 years 7 months ago by pintobuck.

Please Log in or Create an account to join the conversation.

Time to create page: 0.127 seconds