Welcome to WebmasterWorld Guest from 54.161.110.186

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Mod_rewrite indexing

Mod_rewrite indexing

     
11:09 am on May 7, 2003 (gmt 0)

10+ Year Member



Just been reading about using mod_rewrite for making dynamic ursl appear static eg.

[myurl.com...] can be
[myurl.com...]

Do the search engines know your site is is using mod_rewrite and will it index the pages fine?

Cheers

Chris

11:43 am on May 7, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi planbeta,

Short answer - no, it is not possible for a search engine to tell that you are using mod_rewrite.

11:54 am on May 7, 2003 (gmt 0)

10+ Year Member



Thanks a lot - puts my mind at ease!

Cheers

Chris

2:07 pm on May 7, 2003 (gmt 0)

10+ Year Member



Hi Just to check, using this:

RewriteEngine on
Options +FollowSymLinks  
RewriteRule .*\.html$ keywords.php  

should mean the 'redirect' will be invisible to the SE's?

Thanks

Chris

2:17 pm on May 7, 2003 (gmt 0)

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



Planbeta,

I'd suggest using


RewriteEngine on
Options +FollowSymLinks
RewriteRule \.html$ /keywords.php [L]

The [L] flag stops further rewriting, which is usually the desired case, and there is no need to start an unachored pattern with ".*"

As long as you use a local path as the target of the rewrite, and do not use the [R] flag, the rewrite will be transparent to all user-agents.

Jim

2:56 pm on May 7, 2003 (gmt 0)

10+ Year Member



Many thanks jdMorgan :)
6:26 pm on May 7, 2003 (gmt 0)

10+ Year Member



These rewrite rules are mind bending.

Does anyone know how I could write a rule so that

when this is requested:
variablename.pl

this is served:
cgi-bin/search.pl?q=variablename

I can't for the life of me figure it out.

Cheers

Chris

6:36 pm on May 7, 2003 (gmt 0)

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



Chris,

Have you done your homework? - Introduction to mod_rewrite [webmasterworld.com]

For use in .htaccess:


RewriteRule ^(.*)\.pl$ /cgi-bin/search.pl?q=$1 [L]

Jim

6:48 pm on May 7, 2003 (gmt 0)

10+ Year Member



Thanks for the link - very good post! Cheers Jim

Chris

 

Featured Threads

Hot Threads This Week

Hot Threads This Month