Search engine friendly pages for all dynamic scripts

New to mod_rewrite? This is a good place to start.

Search engine friendly pages for all dynamic scripts

Postby cliftonarms » Mon Feb 09, 2004 4:51 am

To enable complete deep indexing of our site I am "playing" with the linux ReWrite rule and creating a search engine only site map of my dynamic pages. This is because only a few of the major search engines follow dynamically generated pages.

eg script.php?var1=100&var2=200
to script/query/var1/equal/200/and/var2/equal/200

I have a lot of different active scripts so the ReWrite rule must be non variable and script specific.

so far I have:

RewriteEngine on
Options +FollowSymlinks
RewriteBase /
RewriteRule ^(.*)/query/(.*)$ $1.php?$2
RewriteRule ^(.*)/equal/(.*)$ $1=$2 [N]
RewriteRule ^(.*)/and/(.*)$ $1&$2 [N]


Trouble is, the first ReWrite rule ( /query/ ) works fine, but the other 2 ( /equal/ + /and/) I cannot get to work for the life of me.

Can anyone please tell me where I am being stupid. If and when I get this going I'll post a how-to for it.
cliftonarms
 
Posts: 1
Joined: Mon Feb 09, 2004 4:50 am

Return to Beginner's Corner

Who is online

Users browsing this forum: No registered users and 43 guests

cron