Posts: 86
Threads: 16
Joined: Jan 2011
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
Posts: 524
Threads: 48
Joined: Mar 2011
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?
Posts: 1
Threads: 0
Joined: Aug 2011
I am also facing this problem, and have just set all permissions to allow, but to no avail unfortunatly.
Posts: 86
Threads: 16
Joined: Jan 2011
Posts: 1,848
Threads: 86
Joined: Aug 2009
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!
Posts: 86
Threads: 16
Joined: Jan 2011
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]
Posts: 2,094
Threads: 54
Joined: Jan 2011
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 ;-)
Posts: 2,094
Threads: 54
Joined: Jan 2011
Other solution might be a
Code:
DirectoryIndex index.php
in the .htaccess file.
Posts: 1
Threads: 0
Joined: Aug 2011
This is driving me crazy. I can't seem to get it working. Urghhhh...
Posts: 2,928
Threads: 195
Joined: Feb 2011
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.
Posts: 86
Threads: 16
Joined: Jan 2011
2011-08-23, 05:26:21
(This post was last modified: 2011-08-23, 05:27:03 by elviraperez7.)
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