Jump to content

Recommended Posts

I've asked this question before, but didn't get any reply at all, and I really need help.  I have Mod_Rewrite set up in my tutorials directory to make the links look static, here is the original url:

 

http://infectionist.com/tutorials/?cat=photoshop&tut=panorama

 

And here is what it's rewritten to:

 

http://infectionist.com/tutorials/photoshop-panorama.html

 

Here is my Mod_Rewrite code:

 

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

 

What's happening, though, is when I run a sitemap generator from Auditmypc.com, (it's a Java based one), it always fails on these pages, it will never index the tutorial pages, even though all the links point to the right place, and everything is served up by my database.  It works fine when I visit the link from a browser, but the sitemap skips it.  I thought it was a problem with the server not handling the rewrites fast enough, so I set the request delay to 1 second.  The thread count is at 9, and it still fails.  Would the Mod_Rewrite be doing this?  Or is it something with my code?  What can I do to fix this, because I really want my tutorials indexed by Google and other search engines, but it won't pick up these pages (as far as I know, google will with it's normal crawl, but it'd have a better rank if I could put it in a sitemap, and I don't want to add it all manually.

 

Edit: It's mainly the images that get rejected.  For some reason, the sitemap crawler refuses to accept the images (not linked, embedded) that are on the tutorial pages.  Though it still won't accept the pages themselves, either, sometimes I can get it to accept them if I retry failed urls.

Ok, this is the mod_rewrite forum, and this question is about mod_rewrite.  What's the problem?  Everyone else is getting replies, so either no one knows the answer, or you're all just being jerks and purposely not answering.  There's no reason why someone couldn't just give me a little "Hey, I'll look into this and see what I can come up with".  At least then I'd know SOMEONE was helping.  I obviously can't figure this out on my own, thus why I'm asking for help.  I've posted all relevant information, and I asked sincerely for help.

Funny thing, I could swear I was asking for just the tiniest bit of help, is it really that hard?  I mean, even a simple "yes, your code would disrupt a sitemap generator" would do, but nothing?  I'm starting to think I'm being ignored in here, I really need some help, and you guys are flat refusing it?  What's going on?  Did I do something wrong?

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.