site showing 404 error???

Started on the old forum in September 2013 · view the original in the archive · old links redirect here

6 replies · 586 views · started 13 years ago · 1 min read

3 participants
billy1977 Developer · 94 posts #2

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 ''; while($row = mysql_fetch_assoc($rekl)) { echo '![](/img/index/icon.png) [**'.$row['name'].'**](http://)</br>'; } echo ''; } ?>

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]

top counter stats @ http://top100.hostmob.in follow on twitter http://twitter.com/worldlistwap

something else Fellow · 2,296 posts #3

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 😛

billy1977 Developer · 94 posts #5

something else wrote: 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...

top counter stats @ http://top100.hostmob.in follow on twitter http://twitter.com/worldlistwap

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close