Viewing 4 replies - 16 through 19 (of 19 total)
  • Hi there,

    I am also a “newbie” with WordPress. However, I suppose I have some shard of ‘common sense’ and the good manners my Mother taught me. This is a VOLUNTEER forum, as far as I know, no one here is paid to dig through pages and pages of rubbish from people who think Google is around simply so one can say “I love to Google myself”.

    That being said and since I’m sick and tired of using the forums to SEARCH for solutions and only finding page after page of whining and bumps from twats who think solutions are found whilst ones finger is up ones nose. I have a solution or at least a starting point for YOU to figure out the answer to your dilemma:

    Adding this to your .htaccess file:
    RewriteRule ^(.*) https://www.YOURDOMAIN.EXT [L,R=301]

    Has worked for me in the past, thought outside of WordPress, to redirect any page without the www prefix to the same page with the prefix. Reading this Apache Reference: mod_rewrtie, RewriteRule should assist you. Failing that, you could try to Google something like “mod_rewrite”, “Rewrite Rules” or things of that sort.

    Cheers,
    Michael.

    Masterful summation, niziol, thanks!

    Many people have said “just Google word press” but the one key thing is you need to use the word ‘rewrite’ to find anything useful. Which is not common sense for someone who is not in to Apache language.

    That’s like saying ‘look it up in the dictionary’ when you don’t know how to spell it ??

    After all of that… here is the solution to the original poster’s problem. Add the following to your main www directory’s .htaccess. Change ‘foo’ to the directory of your WP blog.

    RewriteEngine on
    RewriteBase /
    RewriteRule ^foo$ foo/ [R]

Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘www and trailing slash problem’ is closed to new replies.