GetSimple Support Forum

Full Version: Index page gets 404
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I just started working on new site using 3.0 and I have ran into a problem that I can't seem to find anything on in the support pages.

After installing 3.0 I edited the welcome page(index page) but it gets a 404 when you try to view it and I can't seem to figure out why.
All other pages show up just fine its just the index page that gets the 404.

Any suggestions would be greatly appreciated.


Bob
Bob,

got fancy URLs on, but something's wrong with the rewrite rules in the main .htaccess perhaps? What's the index page's URL in the front-end?
I am also facing this problem, and have just set all permissions to allow, but to no avail unfortunatly.
The Get Simple is in a sub domain right now.

http://www.bbjeepparts.com/Parts/ (should be the index page)

http://www.bbjeepparts.com/Parts/index.php?id=wholesale


With Pretty URLs it looks like this.

http://www.bbjeepparts.com/Parts/

http://www.bbjeepparts.com/Parts/wholesale/

Bob
http://www.bbjeepparts.com/Parts/index.php?id=index this works, so there is no problem with the site reading that index.xml file. This seems to be a problem with your .htaccess file. can you post it here?
Thanks for the help Chris.

AddDefaultCharset UTF-8
Options -Indexes

# blocks direct access to the XML files - they hold all the data!
<Files ~ "\.xml$">
Order allow,deny
Deny from all
Satisfy All
</Files>
<Files sitemap.xml>
Order allow,deny
Allow from all
Satisfy All
</Files>

RewriteEngine on

# Usually it RewriteBase is just '/', but
# replace it with your subdirectory path
RewriteBase /Parts/

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /?([A-Za-z0-9_-]+)/?$ index.php?id=$1 [QSA,L]
rfuller Wrote:Thanks for the help Chris.

AddDefaultCharset UTF-8
Options -Indexes

# blocks direct access to the XML files - they hold all the data!
<Files ~ "\.xml$">
Order allow,deny
Deny from all
Satisfy All
</Files>
<Files sitemap.xml>
Order allow,deny
Allow from all
Satisfy All
</Files>

RewriteEngine on

# Usually it RewriteBase is just '/', but
# replace it with your subdirectory path
RewriteBase /Parts/

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /?([A-Za-z0-9_-]+)/?$ index.php?id=$1 [QSA,L]

I suppose that with GetSimple installed in a subdirectory the RewriteRule will translate /Parts/ to /Parts/index.php?id=Parts.

An extra rule like
Code:
RewriteRule ^Parts/$ index.php
might help. Regarding flags ([QSA,L]), order (before or after) and if RewriteCond are needed, you must try yourself (as I do when adding any rules in my .htaccess) or read the documentation ;-)
Other solution might be a
Code:
DirectoryIndex index.php
in the .htaccess file.
This is driving me crazy. I can't seem to get it working. Urghhhh...
DanKaplans Wrote:This is driving me crazy. I can't seem to get it working. Urghhhh...

if this posting is no spam, you should give us detailed information.
mvlcek


Thanks that worked!!!

Now I am guessing when I move the site to a reg domain from the sub domain I will have to delete the Re Write Rule?


Thanks again.

Bob