LamivNahdus Posted April 16, 2008 Share Posted April 16, 2008 Hai, I want to know how search engines will tackle with a site in which apache rewrite module is used. Consider a dir in which there are three php files named a.php,b.php and c.php which handles the redirect operation. These files will execute according to the the url parameters passed to the dir. for example, www.example.com/dir/images/ will be handled by a.php www.example.com/dir/videos/ will be handled by b.php so www.exaple.com/dir/videos/239244 will be handled as b.php?id=239244 by the Apache. Now consider that a search engine is crawling our site. Whether the php files (a.php and b.php) will be visible to the search engine or not? or if a person search for 'site:example.com a.php', whether the php file a.php will be listed out in search results page or not? Whether the search can see a.php, b.php file or not? Thanks for reading. Please give me an explanation.... Link to comment https://forums.phpfreaks.com/topic/101298-solved-search-engines-and-apache-rewrite/ Share on other sites More sharing options...
Northern Flame Posted April 16, 2008 Share Posted April 16, 2008 wait i got a little confused at the end, what exactly is your question? Link to comment https://forums.phpfreaks.com/topic/101298-solved-search-engines-and-apache-rewrite/#findComment-518115 Share on other sites More sharing options...
LamivNahdus Posted April 16, 2008 Author Share Posted April 16, 2008 My question is simple that whether the hidden files(to the users. Site users wont know it as they will be redirected without their knowledge) a.php and b.php will be visible to the search engine or not? I know that search engines will crawl on site to get the details of the url. if a person search for a.php in my site, will it be listed in the search results page? Link to comment https://forums.phpfreaks.com/topic/101298-solved-search-engines-and-apache-rewrite/#findComment-518119 Share on other sites More sharing options...
Northern Flame Posted April 16, 2008 Share Posted April 16, 2008 from what i know, it wont, but just to be safe you can create a robots.txt file that will at least prevent google from looking at it. But if you have absolutely no link to the actual a.php b.php c.php pages, then there should be no reason for the robots to find it. and while the robots are on www.example.com/dir/images/ they will not know that they are actually seeing a.php or b.php or c.php Link to comment https://forums.phpfreaks.com/topic/101298-solved-search-engines-and-apache-rewrite/#findComment-518122 Share on other sites More sharing options...
LamivNahdus Posted April 16, 2008 Author Share Posted April 16, 2008 Yes, i know about robots.txt Just for prevention i will make it over. Thanks for your explanation.... Link to comment https://forums.phpfreaks.com/topic/101298-solved-search-engines-and-apache-rewrite/#findComment-518123 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.