site showing 404 error???

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • billy1977
    replied
    problem solved thanks guys someone delete this topic thanks

    Leave a comment:


  • softwarefreak
    replied
    The problem is w/ the host I blv, see this page Free Web Hosting with PHP, MySQL and cPanel

    Code:
    RewriteBase /

    Leave a comment:


  • billy1977
    replied
    Originally posted by something else View Post
    you are getting the 404 page as there is no file: site.con/m/index.php so it redirects to a status code 404

    so now knowing that you then look in your .htaccess for the rewrite rule that redirects to the index.php

    remove or comment that rule out and it should work again

    and btw you need to add the correct path for the include on your ads page :P
    can you show me an example of how to comment or remove the rule as what i did jus totally messed things up even worse doh!!
    THanks...

    Leave a comment:


  • billy1977
    replied
    Thanks pal i.ll look into that,if i come up against any problems editing these can i contact you for more help?

    Leave a comment:


  • something else
    replied
    you are getting the 404 page as there is no file: site.con/m/index.php so it redirects to a status code 404

    so now knowing that you then look in your .htaccess for the rewrite rule that redirects to the index.php

    remove or comment that rule out and it should work again

    and btw you need to add the correct path for the include on your ads page :P

    Leave a comment:


  • billy1977
    replied
    htaccess

    this maybe causing my problem but i dont see whats wrong can someone check this piece of code please thanks
    this is as it was in the script...


    <?
    include ('system/connect.php');




    $rekl = mysql_query("SELECT * FROM `".$prefix."rekl` ORDER BY `position` ASC");

    if(mysql_num_rows($rekl) > 0)
    {
    echo '<div class="rek row xs">';
    while($row = mysql_fetch_assoc($rekl))
    {
    echo '<img src="/img/index/icon.png" alt="*" /> <a href="http://'.$row['link'].'"><strong><font color=#'.$row['color'].'>'.$row['name'].'</font></strong></a></br>';
    }
    echo '</div>';
    }

    ?>

    Added after 57 minutes:

    i just turned off rewrite engine in htaccess and got the homepage to show but still facing same 404 error
    here is htaccess and what do i need to fix on this for the other pages to show ?? T.I.A




    RewriteEngine On
    DirectoryIndex index.php
    Options All -Indexes
    php_value session.use_cookies 1
    AddDefaultCharset utf-8

    ErrorDocument 404 /404.php


    RewriteRule ^([0-9]*)$ index.php?page=$1 [L,QSA]
    RewriteRule ^m/registration$ m/registration.php [L,QSA]
    RewriteRule ^servise/informer$ servise/informer.php [L,QSA]
    RewriteRule ^servise/scrin$ servise/scrin/index.php [L,QSA]
    RewriteRule ^exit$ m/authentication.php?act=exit [L,QSA]
    RewriteRule ^m/authentication$ m/authentication.php [L,QSA]
    RewriteRule ^m/ban$ m/ban.php [L,QSA]
    RewriteRule ^m/ban/([0-9]*)$ m/ban.php?page=$1 [L,QSA]
    RewriteRule ^m/office$ m/office.php [L,QSA]
    RewriteRule ^m/office/platforms$ m/office.php?act=platforms [L,QSA]
    RewriteRule ^m/office/addPlatform$ m/office.php?act=add_platform [L,QSA]
    RewriteRule ^m/office/addPlatform/2$ m/office.php?act=add_platform&mod=2 [L,QSA]
    RewriteRule ^m/office/settings$ m/office.php?act=settings [L,QSA]
    RewriteRule ^m/office/code$ m/office.php?act=code [L,QSA]
    RewriteRule ^m/office/code/([0-9]*)$ m/office.php?act=code&id=$1 [L,QSA]
    RewriteRule ^m/office/editPlatform/([0-9]*)$ m/office.php?act=edit_platform&id=$1 [L,QSA]
    RewriteRule ^m/office/editPlatform/2/([0-9]*)$ m/office.php?act=edit_platform&mod=2&id=$1 [L,QSA]
    RewriteRule ^m/office/deletePlatform/([0-9]*)$ m/office.php?act=del_platform&id=$1 [L,QSA]
    RewriteRule ^m/office/deletePlatform/([0-9]*)/ok$ m/office.php?act=del_platform&id=$1&ok [L,QSA]
    RewriteRule ^adm_panel/users.php/([0-9]*)$ adm_panel/users.php?page=$1 [L,QSA]
    RewriteRule ^adm_panel/platforms.php/([0-9]*)$ adm_panel/platforms.php?page=$1 [L,QSA]
    RewriteRule ^m/search$ m/search.php [L,QSA]
    RewriteRule ^adm_panel/news/([0-9]*)$ adm_panel/news.php?page=$1 [L,QSA]
    RewriteRule ^adm_panel/platforms/com/([0-9]*)/([0-9]*)$ adm_panel/platforms.php?act=com_sait&id=$1&page=$2 [L,QSA]
    RewriteRule ^adm_panel/news/com/([0-9]*)/([0-9]*)$ adm_panel/news.php?act=comments&id=$1&page=$2 [L,QSA]

    RewriteRule ^m/rules$ m/rules.php [L,QSA]
    RewriteRule ^m/news$ m/news.php [L,QSA]
    RewriteRule ^m/news/like1/([0-9]*)$ m/news.php?act=reputation&id=$1 [L,QSA]
    RewriteRule ^m/news/like0/([0-9]*)$ m/news.php?act=repa&id=$1 [L,QSA]
    RewriteRule ^m/news/([0-9]*)$ m/news.php?page=$1 [L,QSA]
    RewriteRule ^m/news/comments/([0-9]*)$ m/news.php?act=comments&id=$1 [L,QSA]
    RewriteRule ^m/news/comments/([0-9]*)/([0-9]*)$ m/news.php?act=comments&id=$1&page=$2 [L,QSA]
    RewriteRule ^m/recoveryPassword$ m/recoveryPassword.php [L,QSA]
    RewriteRule ^m/allStats$ m/allStats.php [L,QSA]
    RewriteRule ^m/category$ m/cat.php [L,QSA]
    RewriteRule ^m/category/view/([0-9]*)$ m/cat.php?act=view&id=$1 [L,QSA]
    RewriteRule ^m/category/view/([0-9]*)/([0-9]*)$ m/cat.php?act=view&id=$1&page=$2 [L,QSA]
    RewriteRule ^m/contacts$ m/contacts.php [L,QSA]
    RewriteRule ^stats/([0-9]*)$ m/stats.php?id=$1 [L,QSA]
    RewriteRule ^stats/([0-9]*)/yday$ m/stats.php?act=yday&id=$1 [L,QSA]
    RewriteRule ^stats/([0-9]*)/hours$ m/stats.php?act=hours&id=$1 [L,QSA]
    RewriteRule ^stats/([0-9]*)/com$ m/stats.php?act=com&id=$1 [L,QSA]
    RewriteRule ^stats/([0-9]*)/com/([0-9]*)$ m/stats.php?act=com&id=$1&page=$2 [L,QSA]
    RewriteRule ^stats/([0-9]*)/ip$ m/stats.php?act=ip&id=$1 [L,QSA]
    RewriteRule ^stats/([0-9]*)/ip/([0-9]*)$ m/stats.php?act=ip&id=$1&page=$2 [L,QSA]
    RewriteRule ^stats/([0-9]*)/operators$ m/stats.php?act=operators&id=$1 [L,QSA]
    RewriteRule ^stats/([0-9]*)/operators/([0-9]*)$ m/stats.php?act=operators&id=$1&page=$2 [L,QSA]
    RewriteRule ^stats/([0-9]*)/online$ m/stats.php?act=online&id=$1 [L,QSA]
    RewriteRule ^stats/([0-9]*)/online/([0-9]*)$ m/stats.php?act=online&id=$1&page=$2 [L,QSA]
    RewriteRule ^go/([0-9]*)$ go.php?id=$1 [L,QSA]
    RewriteRule ^out/([0-9]*)$ out.php?id=$1 [L,QSA]
    RewriteRule ^go-([0-9]*)\.php$ go.php?id=$1 [L,QSA]
    RewriteRule ^image/([0-9]*)$ image.php?id=$1 [L,QSA]
    RewriteRule ^image-([0-9]*)\.php$ image.php?id=$1 [L,QSA]
    RewriteRule ^imageOther/([0-9]*)$ imageOther.php?id=$1 [L,QSA]
    RewriteRule ^imageone/([0-9]*)$ imageone.php?id=$1 [L,QSA]
    RewriteRule ^m/new([0-9]*)$ m/mod.php [L,QSA]

    RewriteRule ^stats/([0-9]*)/seo$ m/stats.php?act=seo&id=$1 [L,QSA]
    RewriteRule ^book/([0-9]*)$ book/index.php?page=$1 [L,QSA]
    RewriteRule ^info/([0-9]*)$ m/seo/info.php?id=$1 [L,QSA]
    RewriteRule ^info/([0-9]*)/pr$ m/seo/pr.php?id=$1 [L,QSA]
    RewriteRule ^info/([0-9]*)/cy$ m/seo/cy.php?id=$1 [L,QSA]
    Last edited by billy1977; 10.09.13, 18:13.

    Leave a comment:


  • billy1977
    started a topic site showing 404 error???

    site showing 404 error???

    i installed the script connected db etc all correct but site gets this 404 error!!
    i have tried to solve the prob but i seem to have hit a brick wall....
    take a look here http://otop.webuda.com
    any fix or help most appreciated..
    thanX
Working...
X