+ Reply to Thread
Results 1 to 4 of 4

Thread: WordPress & .htaccess

  1. #1

    Default WordPress & .htaccess

    Come up against an issue on my thesis website prosportswatches.co.uk.

    I've installed wordpress to support a blog on prosportswatches.co.uk/blog but I'm having some issues with redirection. I've narrowed the issue down to the .htaccess file which I'm using to remove .php and deal with the canonical issue. When I remove it wordpress works as expected but when its in place I get a browser message advising me "The page isn't redirecting properly".

    Here's the content of the .htaccess file:

    RewriteEngine on

    Options +FollowSymLinks
    RewriteBase /


    RewriteCond %{HTTP_HOST} ^prosportswatches.co.uk$ [NC]
    RewriteRule (.*) http://www.prosportswatches.co.uk/$1 [R=301,L]


    ## JSHOP VERSION 2 WITH .php REMOVED REWRITE RULES ##
    Options +SymlinksIfOwnerMatch +MultiViews
    RewriteEngine on
    RewriteBase /
    RewriteRule ^(.*).php/(.*) $1.php?$2

    I don't want to loose the functionality so has anyone got any ideas ?

  2. #2

    Default

    After a bit more investigation the issue appears to be coming from the first canonical rewrite statement, since when removed all works but I then have a canonical issue.

  3. #3

    Default

    Pleased to report issue resolved - slight problem with canonical statement which when changed resolved the problem - :-)

    Options +FollowSymLinks
    RewriteEngine on
    RewriteBase /
    RewriteCond %{HTTP_HOST} ^prosportswatches.co.uk$ [NC]
    RewriteRule ^(.*) http://www.prosportswatches.co.uk/$1 [R=301,L]

  4. #4

    Default

    Hi Stewart - I've been teaching all morning so didn't see this till now. Glad you got it sorted out. Just like everything else in web design, one little misplaced character can cause hours of frustration. Although in this case, less than one hour - good going!
    Perhaps late-night surfing is not such a waste of time after all: it is just the Web dreaming. Tim Berners-Lee
    Currently listening to: Script of the Bridge by The Chameleons

+ Reply to Thread

Similar Threads

  1. WordPress
    By Stewart in forum Web Applications and Technology
    Replies: 4
    Last Post: 18th Mar 2010, 03:06 pm
  2. Htaccess Tools
    By David in forum Useful Links
    Replies: 0
    Last Post: 16th Nov 2009, 04:42 pm
  3. How to do A/B Testing in WordPress
    By Think Vitamin in forum Web Design RSS Feeds
    Replies: 0
    Last Post: 27th Jul 2009, 12:16 pm

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts