fix johnson Posted June 10, 2006 Share Posted June 10, 2006 Hi I have a question about a redirect on my index page.This is the result from using meta tag checker....Note! This site does NOT provide the robots.txt file or the robots.txt file is not constructed properly. It is recommended all sites provide this file. For more information on how to properly construct and use the robots.txt file consider becoming a member.WARNING! The URL you entered was redirected to:[a href=\"http://barrie101.com/Default.php\" target=\"_blank\"]http://barrie101.com/Default.php[/a]It is recommended you use the above URL when submitting to SEARCH ENGINESmy htaccess file is DirectoryIndex default.php index.phpWill this cause a problem with search engines, Google in particular, having default.php being my opeining page with a redirect? Any input on this is welcome. Home page is [a href=\"http://barrie101.com\" target=\"_blank\"]http://barrie101.com[/a]Thank you,Fix Johnson Quote Link to comment https://forums.phpfreaks.com/topic/11666-php-redirects/ Share on other sites More sharing options...
joquius Posted June 10, 2006 Share Posted June 10, 2006 how about just writing that robots.txt instead of it redirecting to a html page? :)just leave it blank, it'll get you into trouble if google gets a full coded page instead of robots.txt (404 instead of txt file) Quote Link to comment https://forums.phpfreaks.com/topic/11666-php-redirects/#findComment-44079 Share on other sites More sharing options...
fix johnson Posted June 10, 2006 Author Share Posted June 10, 2006 [!--quoteo(post=382302:date=Jun 10 2006, 03:18 PM:name=joquius)--][div class=\'quotetop\']QUOTE(joquius @ Jun 10 2006, 03:18 PM) [snapback]382302[/snapback][/div][div class=\'quotemain\'][!--quotec--]how about just writing that robots.txt instead of it redirecting to a html page? :)just leave it blank, it'll get you into trouble if google gets a full coded page instead of robots.txt (404 instead of txt file)[/quote]I understand about writing the robots.txt file. Not sure about the redirect part. My concern was the htaccess redirect DirectoryIndex default.php index.phpDid you mean for me to put my redirect in my robots.txt file or am I missing something else that you meantI am a NEWBIE so things have to be pretty well laid out for me to follow...heheheThanks for your reply,Fix Quote Link to comment https://forums.phpfreaks.com/topic/11666-php-redirects/#findComment-44135 Share on other sites More sharing options...
AndyB Posted June 10, 2006 Share Posted June 10, 2006 Write a sensible robots.txt file. It has nothing to do with .htaccessCreate a new page called 404.php which is where 'errors' will go - simple stuff, i.e. We could not find the page you requested. Please make another selection from the menu above/at left/at right blah blah blahChange the .htaccess file to[code]ErrorDocument 404 http://www.barrie101.com/404.phpDirectoryIndex index.php[/code] Quote Link to comment https://forums.phpfreaks.com/topic/11666-php-redirects/#findComment-44151 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.