Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
.htaccess not working with Godaddy shared server.
#1
I am trying to install getsimple cms with URL re-writing on a Godaddy host.
Everything works fine until I select Pretty URL from settings which enables htaccess rules. I get 404 error. The same configuration is on my local server and works just fine. Any idea what is wrong with godaddy?
Reply
#2
Below is my .htacces file

sandesh Wrote: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 /clients/targetinc/

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

Not sure which one of the following solution fixed problem:
1) It seems that there was some problem in .htaccess file on server (setup generated). Overwritten my local file on server.
2) Changed on last line 'index.php' to '/clients/targetinc/index.php'

Thanks,
Sandesh
Reply
#4
since there cannot be two .htaccess files in the same directory, if there was an existing file there, the GS setup routine would have overwritten it.

You should have to do #2 if the RewriteBase is set correctly...

Glad its working though
- 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




Users browsing this thread: 1 Guest(s)