Posts: 16
Threads: 4
Joined: Apr 2010
I have done a search on the forum and I think my problem is fancy urls and the htaccess file. The index page is showing but any other page I add gets a 404 error if I have fancy urls on. They show up fine when I turn fancy urls off. I have GS in the root folder (I think that is what it is called ie
www.MYURL.com/index.php is the index page.
This is the contents of my htaccess file:
Code:
AddDefaultCharset UTF-8
RewriteEngine on
# Usually it RewriteBase is just '/', but
# replace it with your subdirectory path
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /?([A-Za-z0-9-]+)/?$ index.php?id=$1 [QSA,L]
Please let me know what I need to do to turn fancy urls back on!
Posts: 972
Threads: 27
Joined: Aug 2009
The HTACCESS seems right, please check with your hosting whether mod_rewrite and/or HTACCESS files are allowed.
Posts: 16
Threads: 4
Joined: Apr 2010
Thank you! I checked with my host, they said mod_rewrite and HTACCESS files are allowed. :/
Posts: 972
Threads: 27
Joined: Aug 2009
So, the HTACCESS is in the root of your GetSimple installation, Fancy URLs are turned on and both mod_rewrite and HTACCESS is allowed on your server? I don’t think I have any ideas left.
Though, if you have GetSimple in a subdirectory, note that you might need to change the RewriteBase in the .htaccess-file.
Posts: 16
Threads: 4
Joined: Apr 2010
2010-04-02, 20:27:55
(This post was last modified: 2010-04-02, 20:28:50 by joene.)
Yes all of the above, but I worked it out by installing it on another domain and comparing the files.
The .htaccess file was called temp.htaccess but on the new test installation there was a regular .htaccess file. I didn't realise that temp.htaccess was wrong, but when I changed it to .htaccess it works now!
I really love the ease and simplicity of GS and I am so glad I got the fancy urls working, I am too happy
Posts: 3
Threads: 1
Joined: Aug 2010
Zegnåt Wrote:So, the HTACCESS is in the root of your GetSimple installation, Fancy URLs are turned on and both mod_rewrite and HTACCESS is allowed on your server? I don’t think I have any ideas left.
Though, if you have GetSimple in a subdirectory, note that you might need to change the RewriteBase in the .htaccess-file.
thanks, rewrite base was wrong at my site, that did it!