Welcome to WebmasterWorld Guest from

Forum Moderators: Ocean10000 & phranque

Message Too Old, No Replies

Rewrite module

Newbie question



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

Inactive Member
Account Expired


Hello I have a question about this page
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

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

Senior Member

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 31, 2002
votes: 0


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!

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:July 22, 2002
votes: 0

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.