Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

404 Error on every page but my Homepage
(1 viewing) (1) Guest
Support forum for users using free edition of JoomSEF 3 (Joomla 1.5 compatible). These forums are mainly for mutual help between users.

Please note that due to our capacity limitations, we do not monitor these forums regularly.

TOPIC: 404 Error on every page but my Homepage

404 Error on every page but my Homepage 11 years ago #14688

Hi all I am having Major issues with my attempt and SEO'ing a site I have created. I have install JoomSEF and everything installed fine I have set up a few custom urls and i have also selected auto SEF on the rest of the urls. Within joomla I have enabled 'Apache mod rewrites' and also SEF to yes (See attached picture for settings) and every thing looks good with no errors.

BUT.. when I try to view my site the main page loads fine but all the other pages show a 404 error. I've tried a few different configurations and have also searched these boards for a solution but no one gives a straight answer.

Attached is a collection of photos showing my current configuration both in Joomsef and Joomla.

I have spoken to my hosting company and they assure me that rewrites are enables on the .htaccess file

Am I missing something really obvious?

Any help is much appreciated

Kindest Regards
Gary

P.s. my site address is /p://www.minecamps.com.au/

Last Edit: 11 years ago by gaznev2000.

Re:404 Error on every page but my Homepage 11 years ago #14764

  • lubi
  • OFFLINE
  • Posts: 221
Did you get 404 from Joomla or Apache?
ARTIO Support Team

Re:404 Error on every page but my Homepage 11 years ago #14799

I use this code and solve the problem for me. I hope it help you.




DirectoryIndex index.php
RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$ [NC]
RewriteRule (.*) index.php
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]

########## 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]
#
########## End - Rewrite rules to block out some common exploits

Re:404 Error on every page but my Homepage 11 years ago #14803

Hi lubi , Thanks for the reply I think I am getting an Apache 404 message but not entirely sure I have attached a screenshot below so you can see for yourself.



Regards Gary
Last Edit: 11 years ago by gaznev2000.

Re:404 Error on every page but my Homepage 11 years ago #14804

Hi neopablix, where did you use this code in the configuration.php?

Regards
Gary

Re:404 Error on every page but my Homepage 11 years ago #14808

gaznev2000 wrote:
Hi neopablix, where did you use this code in the configuration.php?

Regards
Gary


Hi friend, in the .htaccess. Cheers
User Login Empty