Jump to content

Is Mod_Rewrite breaking my sitemap?


Recommended Posts

I don't know if this is what it is, but all arrows point to it.  I'm trying to run a sitemap tool from auditmypc.com, and I have a few pages where the url's are rewritten to make them more friendly to search engines.  For example, before a url to one of my tutorials used to look like this:

 

http://claninfectionist.com/tutorials/index.php?cat=photoshop&tut=pipe

 

Well I rewrote it so that it now looks like this:

 

http://claninfectionist.com/tutorials/photoshop-pipe.html

 

And it works fine in the browser, but for whatever reason, the sitemap tool refuses it, fails everytime.  Furthermore, when I try to visit my site after running the sitemap, many of the images comprising the layout are shown as the red X, even though the path is right, and the image shows after right-clicking and clicking show picture.  I don't know why a rewrite would break anything, but it seems to be only the pages I have rewritten that are failing.  I also rewrote the music and movie sections becuase they made use of dynamic REQUEST variables and I wanted that indexable.  Here is the code I'm using to rewrite the tutorials page, this is my entire .htaccess file:

 

RewriteEngine on
RewriteRule (.*)-(.*)\.html$ index.php?cat=$1&tut=$2
RewriteRule (.*)\.html$ index.php?cat=$1

 

And this is the one I'm using for my music and movie's sections, which are in seperate directories, but use the same index.php page (though there is one in each of the folders):

 

RewriteEngine on
RewriteRule d_(.*)$ index.php?file=$1
RewriteRule (.*)_(.*)_(.*)_(.*).html$ index.php?page=$1&rpp=$2&so=$3&admin=$4
RewriteRule (.*)_(.*)_(.*).html$ index.php?page=$1&rpp=$2&so=$3
RewriteRule (.*)_(.*).html$ index.php?page=$1&rpp=$2
RewriteRule (.*).html index.php?page=$1

 

Am I doing something wrong in my htaccess files, or is that sitemap generator just touchy.  If I recall right, and I do, it never did like the movie and music pages, even when they were using dynamic url variables, it almost always failed at least a couple of those pages, though it might have been becuase of the &admin= part, you have to put in a password for that to work.

 

Anyways, PLEASE help!

Link to comment
Share on other sites

Really, honestly, I can't believe that this has been so blatantly ignored.  You guys used to be SO good at answering questions and helping with problems, why can't this be addressed?  Seriously, I really need to get a sitemap up and this is stopping my from doing it so please help me people!

Link to comment
Share on other sites

AHHHHHHHHHHHHHHHHHH!!!!!!  PLEASE answer the question.  What is wrong with it?  Is it phrased wrong!  Is there something wrong with it?!?!?  What is so bad abou tit?  It's a simple matter, I've posted my code, I've told you what's happening, I've given the entire freaking situation!  It's not a difficult question to answer!?!?!  I told you, I need a sitemap, and I can't get one until this problem gets fixed!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.