Welcome to WebmasterWorld Guest from 54.234.244.30

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)

Junior Member

10+ Year Member

joined:Feb 25, 2003
posts:83
votes: 0


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)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 3, 2003
posts:1633
votes: 0


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)

Junior Member

10+ Year Member

joined:Feb 25, 2003
posts:83
votes: 0


Thanks a lot - puts my mind at ease!

Cheers

Chris

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

Junior Member

10+ Year Member

joined:Feb 25, 2003
posts:83
votes: 0


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)

Senior Member

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

joined:Mar 31, 2002
posts:25430
votes: 0


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)

Junior Member

10+ Year Member

joined:Feb 25, 2003
posts:83
votes: 0


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

Junior Member

10+ Year Member

joined:Feb 25, 2003
posts:83
votes: 0


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)

Senior Member

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

joined:Mar 31, 2002
posts:25430
votes: 0


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)

Junior Member

10+ Year Member

joined:Feb 25, 2003
posts:83
votes: 0


Thanks for the link - very good post! Cheers Jim

Chris

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members