WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Strange redirects (8 posts)

  1. utnalove
    Member
    Posted 2 years ago #

    Please look at the following URLs:
    http://glamourina.pl/g redirects to http://glamourina.pl/giuseppe-zanotti/
    http://glamourina.pl/g redirects to http://glamourina.pl/idealny-stroj-na-spacer/

    Is that normal that if you type the first letter it goes to a post/page that starts with that specific letter?

  2. tbennett04
    Member
    Posted 2 years ago #

    Do you have any redirects in your htaccess file? Are you using plugins that may be causing this? Try disabling them to see. If it correct, reenable 1 by 1. This is not normal behavior.

  3. utnalove
    Member
    Posted 2 years ago #

    I do not have plugins that may edit/redirect sites...

    This is my .htaccess right now:

    RewriteRule ^category/(.*)$ /glamour/$1 [R=301,L]
    RewriteRule ^tag/(.*)$ /t/$1 [R=301,L]
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
  4. tbennett04
    Member
    Posted 2 years ago #

    what are you trying to achieve with lines 1 and 2? that looks like the culprit... i'm no . .htaccess guru but a 301 is a redirect

  5. utnalove
    Member
    Posted 2 years ago #

    I changed the alias for tags and category.
    The alias for the tags changed from tag to t and from category to glamour

    So that queries to mysite.com/tag/xyz will redirect to mysite.com/t/xyz

    I have tried to delete it from the htaccess, so it's not the source of those stranges redirects.

  6. utnalove
    Member
    Posted 2 years ago #

    hmm.. I have checked in other blogs 2.x hosted in other places and they behave the same....

    it looks like that this behavior is normal. Is it happening in your blogs as well? Maybe you can try /a /b /c /d , etc...

  7. tbennett04
    Member
    Posted 2 years ago #

    looks like you are right. comments retracted! this must be a permalink setting with custom permalinks

  8. utnalove
    Member
    Posted 2 years ago #

    ok cool, thanks much :)))

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.