Forum Moderators: phranque

Message Too Old, No Replies

Rewrite module

Newbie question

         

spigolo

12:18 am on Jan 29, 2003 (gmt 0)



Hello I have a question about this page
[warszawa.shambhala.pl...]
When you click on the left menu the links are rewritten with? the next time the page loads.
here is my .htaccess rewriteRule
RewriteEngine On
RewriteBase /
RewriteRule index_([0-9]+).html$ index.php?id=$1
When the page loads the first time everything is fine . then when i click on a link , the page reloads with new content but all the links are rewritten index.php?id=NUMBER in the menu which is not what i want because i don't want spider to stop scrolling because of the?
what should i do? Please help!

what am i misunderstanding?
thanks for help

jdMorgan

1:40 am on Jan 29, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



spigolo,

Maybe this will clarify the situation:

Remember that the rewrite can take place on each and every request.

Mod_rewrite takes browser requests and converts them for use inside the server. It has no effect on server file output, except for the headers served with those files.

Make sure that your server-side script uses only the spider-friendly URLs when it outputs HTML pages, then let mod_rewrite change those URLs back into script-friendly requests for use by your script.

Hope this helps!
Jim

andreasfriedrich

7:32 am on Jan 29, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld [webmasterworld.com] spigolo.

Be sure to read Marcia`s WebmasterWorld Welcome and Guide to the Basics [webmasterworld.com] post as it contains a whole bunch of very useful information.

In addition to Jim´s explanation you might want to have a look at
DaveAtIFG´s An Introduction to Redirecting URLs on an Apache Server [webmasterworld.com] which might help you understand mod_rewite better.

Andreas