0
Welcome Guest! Login
0 items Join Now

HTTP and sitemap issue

  • HTTP and sitemap issue

    Posted 15 years 6 months ago
    • Hi there,

      I am having a strange problem growling my site for a sitemap with prefix www.mydomain rather then just http://mydomain

      I submitted my site to google with http://www and built sitemaps and backlinks such as with the "www." however all of the sudden my site is able to sitemap with the "www." on most online sitemap builders and software.

      I ve recentlly installed JCrawler which looks great for building sitemaps. even this component wont let me make the sitemap with the www in the links.

      This same things happened with other site a few months ago, suddenly wasnt possible to crawl with www. That time i change the webmaster tools settings in Google to sitemap without the www. problem was that all the backlinks listed there suddenly gone and had to go change those as well!!! :shock:

      I really dont want have to do that again!! :oops:


      Is there a reason why these domains are being redirected without www. out of no where?
    • Jamesso's Avatar
    • Jamesso
    • Elite Rocketeer
    • Posts: 500
    • Thanks: 0

    Re: HTTP and sitemap issue

    Posted 15 years 6 months ago
  • Re: HTTP and sitemap issue

    Posted 15 years 6 months ago
    • Thank you Jamesso,

      That link you ve provided has so much relevance and good information.
      I ve tried adding

      rewritecond %{http_host} ^subdomain.mydomain.com [nc]
      rewriterule ^(.*)$ www.subdomain.mydomain.com/$1 [r=301,nc]

      just after
      ## Can be commented out if causes errors, see notes above.
      Options +FollowSymLinks

      #
      # mod_rewrite in use

      RewriteEngine On

      I have SEF on, host works with Linux servers with Apache mod-rewrite on, and urls ending with html.

      As soon as i uploaded the .htaccess and trying typing mydomain.com i got a blank screen with
      "Moved Permanently
      The document has moved here.

      Additionally, a 400 Bad Request error was encountered while trying to use an ErrorDocument to handle the request."

      Do you know what is happening here :)

      Thanks for the support
  • Re: HTTP and sitemap issue

    Posted 15 years 6 months ago
    • Think I got it, i was missing the "Options +FollowSymLinks" prior to the "RewriteEngine On" as well as needed to edit the [r=301,nc] to [L,R=301]

      so the

      Options +FollowSymlinks
      RewriteEngine on
      rewritecond %{http_host} ^mysite.com [nc]
      rewriterule ^(.*)$ www.mysite.com/$1 [r=301,nc]

      as this

      Options +FollowSymLinks
      RewriteEngine on
      RewriteCond %{HTTP_HOST} ^mysite.com [NC]
      RewriteRule ^(.*)$ www.mysite.com/$1 [L,R=301]

      The only issue is that it doenst want to work with the main site only the subdomin. I haven't tested it yet on other sites but i suspect this might have something to do with sh404sef as this is only installed on the mainsite and not in the subdomin.

      an enormous thanks
      Itscoolbananas

Time to create page: 0.144 seconds