Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Index page gets 404
#1
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
Reply
#2
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?
Reply
#3
I am also facing this problem, and have just set all permissions to allow, but to no avail unfortunatly.
Reply
#4
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
Reply
#5
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?
- Chris
Thanks for using GetSimple! - Download

Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Reply
#6
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]
Reply
#7
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 ;-)
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply
#8
Other solution might be a
Code:
DirectoryIndex index.php
in the .htaccess file.
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply
#9
This is driving me crazy. I can't seem to get it working. Urghhhh...
Reply
#10
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.
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#11
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
Reply




Users browsing this thread: 1 Guest(s)