Jump to content

Recommended Posts

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 ENGINES

my htaccess file is DirectoryIndex default.php index.php


Will 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
Link to comment
https://forums.phpfreaks.com/topic/11666-php-redirects/
Share on other sites

[!--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.php

Did you mean for me to put my redirect in my robots.txt file or am I missing something else that you meant

I am a NEWBIE so things have to be pretty well laid out for me to follow...hehehe

Thanks for your reply,

Fix
Link to comment
https://forums.phpfreaks.com/topic/11666-php-redirects/#findComment-44135
Share on other sites

Write a sensible robots.txt file. It has nothing to do with .htaccess

Create 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 blah

Change the .htaccess file to
[code]ErrorDocument 404 http://www.barrie101.com/404.php
DirectoryIndex index.php[/code]
Link to comment
https://forums.phpfreaks.com/topic/11666-php-redirects/#findComment-44151
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.