My home page return a 404 form the header

Discussion in 'PHP' started by yanndc, Mar 22, 2009.

  1. #1
    yanndc, Mar 22, 2009 IP
  2. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #2
    Well... the page comes up just fine, so it seems it is directing certain spiders to a 404-page - for what purpose, I don't know. The page itself loads just fine. You should post your .htaccess-file so we could look at it, I think - it's hard to say what error causes this with no access to the files.
     
    PoPSiCLe, Mar 22, 2009 IP
  3. yanndc

    yanndc Banned

    Messages:
    244
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Ya. I initially did not poted it because I tought is was quite big. the problem might be in the first 20 lines though.

    He is is:

    
    ExpiresActive On
    ExpiresByType image/gif A2592000
    
    ##  Can be commented out if causes errors, see notes above.
    Options +FollowSymLinks
    
    #
    #  mod_rewrite in use
    
    RewriteEngine On
    
    RewriteBase /
    
    RewriteCond %{HTTP_HOST} ^x10media.com
    RewriteRule (.*) http://www.x10media.com/$1 [R=301,L]
    
    ErrorDocument 404 /404.php
    Redirect 301 /scripts.php http://www.x10media.com/scripts
    Redirect 301 /image-hosting-script.php http://www.x10media.com/image-hosting-script
    Redirect 301 /mp3-script.php http://www.x10media.com/mp3-script
    Redirect 301 /media-script.php http://www.x10media.com/media-script
    Redirect 301 /micro-blog-script.php http://www.x10media.com/micro-blog-script
    Redirect 301 /filehost-script.php http://www.x10media.com/filehost-script
    Redirect 301 /add-ons.php http://www.x10media.com/add-ons
    Redirect 301 /general-add-ons.php http://www.x10media.com/general-add-ons
    Redirect 301 /contact.php http://www.x10media.com/contact
    Redirect 301 /webmaster-resources.php http://www.x10media.com/webmaster-resources
    
    #  Uncomment following line if your webserver's URL
    #  is not directly related to physical file paths.
    #  Update Your Joomla!/MamboDirectory (just / for root)
    
    RewriteRule ^mp3-script$ index.php?option=com_content&task=view&id=5&Itemid=9  [L]
    RewriteRule ^image-hosting-script$ index.php?option=com_content&task=view&id=14&Itemid=9  [L]
    RewriteRule ^media-script$ index.php?option=com_content&task=view&id=15&Itemid=9  [L]
    RewriteRule ^micro-blog-script$ index.php?option=com_content&task=view&id=16&Itemid=9  [L]
    RewriteRule ^filehost-script$ index.php?option=com_content&task=view&id=17&Itemid=9  [L]
    RewriteRule ^add-ons$ index.php?option=com_content&task=view&id=18&Itemid=9  [L]
    RewriteRule ^general-add-ons$ index.php?option=com_content&task=view&id=27&Itemid=9  [L]
    RewriteRule ^ms-add-ons$ index.php?option=com_content&task=view&id=19&Itemid=9  [L]
    RewriteRule ^mp3-add-ons$ index.php?option=com_content&task=view&id=20&Itemid=9  [L]
    RewriteRule ^general-add-ons$ index.php?option=com_content&task=view&id=20&Itemid=9  [L]
    RewriteRule ^webmaster-resources$ index.php?option=com_content&task=view&id=29&Itemid=9  [L]
    RewriteRule ^contact$ index.php?option=com_content&task=view&id=21&Itemid=9  [L]
    RewriteRule ^scripts$ index.php?option=com_content&task=view&id=12&Itemid=9  [L]
    RewriteRule ^AboutUs$ index.php?option=com_content&task=view&id=23&Itemid=9 [L]
    RewriteRule ^news$ index.php?option=com_content&task=blogsection&id=0&Itemid=9 [L]
    RewriteRule ^sitemap$ /index.php?option=com_xmap&sitemap=1 [L]
    RewriteRule ^power-scripts-information$ index.php?option=com_content&task=view&id=30&Itemid=9 [L]
    
    
    ########## Begin - Joomla! core SEF Section
    ############# Use this section if using ONLY Joomla! core SEF
    ## ALL (RewriteCond) lines in this section are only required if you actually
    ## have directories named 'content' or 'component' on your server
    ## If you do not have directories with these names, comment them out.
    #
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    #RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] 		##optional - see notes##
    RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$  [NC]
    RewriteRule ^(content/|component/) index.php
    #
    ########## End - Joomla! core SEF Section
    
    ########## Begin - 3rd Party SEF Section
    ############# Use this section if you are using a 3rd party (Non Joomla! core) SEF extension - e.g. OpenSEF, 404_SEF, 404SEFx, SEF Advance, etc
    #
    #RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] 		##optional - see notes##
    #RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$  [NC]
    #RewriteCond %{REQUEST_FILENAME} !-f
    #RewriteCond %{REQUEST_FILENAME} !-d
    #RewriteRule (.*) index.php
    #
    ########## End - 3rd Party SEF Section
    
    
    
    ########## Begin - Rewrite rules to block out some common exploits
    ## If you experience problems on your site block out the operations listed below
    ## This attempts to block the most common type of exploit `attempts` to Joomla!
    #
    # Block out any script trying to set a mosConfig value through the URL
    RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
    # Block out any script trying to base64_encode crap to send via URL
    RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
    # Block out any script that includes a <script> tag in URL
    RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
    # Block out any script trying to set a PHP GLOBALS variable via URL
    RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
    # Block out any script trying to modify a _REQUEST variable via URL
    RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
    # Send all blocked request to homepage with 403 Forbidden error!
    RewriteRule ^(.*)$ index.php [F,L]
    
    
    Code (markup):
     
    yanndc, Mar 22, 2009 IP