Forum Moderators: open
Through copious use of mod_rewrite on my site i've got a nice little directory-type structure
www.mysite.com/category1/sub-category1/
where such a URL is rewritten as parameters to some CGI. Nothing spectacular there. However I've been unable to get around having to do a redirect from, say
www.mysite.com/category1/sub-category1 to
www.mysite.com/category1/sub-category1/ so that the request is parsed properly and the CGI gets the right parameters.
There's also some other redirects e.g.where the main index gets redirected i.e.
www.mysite.com/index.htm is redirected to
www.mysite.com/html/index.htm
(this is because I use XML/XSLT, and I've a few XSL files knocking around and files that are processed by different XSLT files had to be in different directories).
I'm worried that such 'internal' redirects are going to hurt the spider in deep crawling my site, or google is going to think I'm being naughty by redirecting you about the place.
Is this sort of thing illegal/frowned upon, or am I worrying over nothing?
Had a root round the web and am struggling to find a similar case.
Cheers,
Paul.
I'm worried that such 'internal' redirects are going to hurt the spider in deep crawling my site, or google is going to think I'm being naughty by redirecting you about the place.
Links on your site are under your control and therefore shouldn't be a problem; the spider would be none the wiser that you have any .htaccess magic going on.
The only sticky case would be when people deep link to your subdirectories without the trailing "/", causing your double re-write to kick in, but even this is behaviour that is web-server default anyway.
Is this sort of thing illegal/frowned upon, or am I worrying over nothing?
Certainly not illegal in a legislation sense, but if you're talking about a search engine's opinion of your site you have nothing to worry about. .htaccess re-writing is completely transparent to the client.