WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] htaccess redirection ignored by carrington? (5 posts)

  1. gerald@WPcustoms
    Member
    Posted 3 years ago #

    Hello,

    I ran into a difficult problem:
    carrington seems to ignore a 301 redirection set in the root htaccess file.
    I got this:
    #RedirectMatch 301 /(.*)\.html$ http://www.site.com/$1/index.htm
    (changing url syntax from site.com/title.html to site.com/title/index.htm)

    With the old theme this worked without a problem but since I'm using carrington the redirection does not work anymore.

    Carrington uses some automatic url suggestion and I could imagine this could cause the problem with the 301 redirection but I haven't found that piece of code.

    Thanks for every tip or hint.

  2. flamenco
    Member
    Posted 3 years ago #

    Your command is commmented out. :) See the #?

    You could certainly un-comment it, and it may work.

    Cheers

  3. gerald@WPcustoms
    Member
    Posted 3 years ago #

    oh yeah you're right. that didn't solved the problem but it leads me to the solution that we managed it with php instead (and commented htaccess out)
    thanks for the hint :)

  4. flamenco
    Member
    Posted 3 years ago #

    Glad that jarred loose an idea! And I know those things can be innocent... sometimes various scripts will comment out .htaccess commands they don't like when installing.

    The most complicated situation I had was when I would install all my sites in the same account using subdomains. This sometimes required some fancy .htaccess footwork, and I'm not an expert mod_rewrite programmer, but I managed it.

    Sometimes a change to the root .htaccess would bork a site in a subdomain. I always fixed them and got it all working, but of course ultimately found it easier to divvy up my sites completely via WHM.

    Cheers

  5. gerald@WPcustoms
    Member
    Posted 3 years ago #

    yeah htaccess is a real tricky thing.
    I spend some good amount of time too with redirections and access things - still having no real clue what all the -f's and NC's are ;)
    but hey...without htaccess functionality we'd be lost :)

    thanks again for your post.
    cheers

Topic Closed

This topic has been closed to new replies.

About this Topic