Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

Incorrect Server Setup related to URL ReWriting – Cause and Effect

by

Tips and Tricks HQ Support Portal › Forums › General Stuff › Instructions/F.A.Q › Incorrect Server Setup related to URL ReWriting – Cause and Effect

Tagged: Mod rewrite Persistent

  • This topic has 10 replies, 6 voices, and was last updated 11 years, 10 months ago by Pamela.
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • April 23, 2010 at 11:53 pm #1122
    amin007
    Participant

    First of all you need to understand the difference between the following two URLs:

    http://www.example.com

    http://example.com

    Notice how the “www” is missing in the 2nd URL? In your eyes it may look like both the URLs are for the same site but apache will treat is as two different sites.

    If you have some of your site pages that have the “www” version and some without the “www” then this could signal an issue. A web server could return completely different content for these two pages as they will have different PHP sessions. Not to mention that Search engines will index these pages as two different sites and the page rank will get split (not good from an SEO point of view).

    The best thing to do is to choose one version either the “www” or the “non-www” and stick with it everywhere (this way you will have consistency).

    You can easily make your URLs stay consistent with the help of “URL ReWriting of Apache” or use 301 redirect.

    One thing to make sure is to check the “General Settings” of your WordPress and make sure that the value in the following two fields are consistent:

    WordPress address (URL)

    Blog address (URL)

    If you setup the above two fields correctly WordPress will write the URL rewrite condition in the .htaccess file properly for you.

    This URL has detailed documentation on apache URL rewriting:

    http://httpd.apache.org/docs/2.0/misc/rewriteguide.html

    Site with HTTPS URLs

    A similar issue can happen if you are mixing “https” and “http” URLs on your site. For example: if a member/user is logging into your site from a “https” URL then that user’s authentication data may not be present if the user browses to a non-https URL. So pick one version and then use that throughout your site.

    You can use a plugin like the following to redirect all traffic to your HTTPS version.

    https://wordpress.org/plugins/https-redirection/

    May 5, 2011 at 7:40 am #20047
    saraphis
    Member

    Thank you – I changed the default landing page from www to htttp and it works – I’m non technical as you can see! Please close

    September 26, 2012 at 1:11 am #20048
    Marfisk
    Member

    Thank you for this, and several other posts on the PayPal blank page issue. We’re currently waiting on confirmation from the customer, but I’m pretty sure this is the issue…sort of.

    My client has two portals to her site, both separate websites with different things going on. The eStore makes up the key component of one, while the other has a different primary focus. So as not to confuse customers or make them think they’ve been hijacked, when a customer comes in through the second portal and wants to buy something at the store, they’re redirected to the store site, but the URL still shows the site where they were. However, if I’m right, this is the cause of the reported blank page. Is there any way to work around it? Or do we have to do the redirect visibly?

    September 26, 2012 at 2:49 am #20049
    admin
    Keymaster

    Its best to do a clean redirection to the other site (hiding a site behind another one may trigger *phishing* warning to some customer’s browser and then you will lose the customer for sure). Also, PayPal won’t allow a user to perform checkout if the checkout is loaded using an iFrame.

    September 26, 2012 at 4:25 am #20050
    Marfisk
    Member

    Is that how mod rewrite does a persistent name? Okay, I’ll tell my client that we need to let the redirect show.

    February 23, 2013 at 5:03 am #20051
    Seb
    Member

    Hi!

    Does it matter if i use a subdirectory like this?

    wordpress URL: [http://www.domain.com/wordpress]

    site url: [http://www.domain.com]

    Note: www for both URLs

    February 23, 2013 at 11:43 pm #20052
    admin
    Keymaster

    Does it matter if i use a subdirectory like this?

    Does it matter for what? There is nothing wrong with installing WordPress in a sub-directory if that is what you are asking. Your URL structure looks good to me.

    February 24, 2013 at 5:09 am #20053
    Seb
    Member

    Sorry for not being precise.

    /////////

    One thing to make sure is to check the “General Settings” of your WordPress and make sure that the value in the following two fields are consistent:

    WordPress address (URL)

    Blog address (URL)

    /////////

    I was just wondering whether a sub-directory in the wordpress URL only would count as “inconsistent values”, hence possibly corrupt my estore installation.

    I take your answer as a “no worries, your set up is fine!”

    Thanks for your help!

    Seb

    June 22, 2013 at 4:19 pm #20054
    Pamela
    Member

    Hi,

    Was wondering if you can direct me on whether this is a problem for me ranking-wise also.

    My URLs are consistent as you described above.

    But, I have [http://booksbypam.com] set up everywhere except in my Google analytics account where it is [http://www.booksbypam.com]

    Reluctant to pursue changing it as I don’t know the affect on my site. booksbypam.com traffic is showing up in analytics under [www.booksbypam.com] Never saw it as a problem before and don’t really know if it is now.

    Thank you, Pam

    June 23, 2013 at 12:22 am #20055
    admin
    Keymaster

    Your site automatically redirects to the non “www” version. So you should be good from SEO point of view.

    June 23, 2013 at 5:48 am #20056
    Pamela
    Member

    Thank you. :)

  • Author
    Posts
Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ