Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
empty htaccess in root and 404 except for index.php
#1
I wanted to paste my .htaccess from site root directory below, but after looking in to it, it is empty - 0kB:
However temp.htaccess in the same directory contains:
Code:
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 **REPLACE**

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

Am I right it got deleted? I recently added two pages and can't remember well, if I logged out properly or not.

--
3.0 and 0 plugins.
Reply
#2
Renaming temp.htaccess to .htaccess and changing RewriteBase **REPLACE** to RewriteBase / should solve the problem.
Addons: blue business theme, Online Visitors, Notepad
Reply
#3
yojoe Wrote:Renaming temp.htaccess to .htaccess and changing RewriteBase **REPLACE** to RewriteBase / should solve the problem.
Yep, thanks it worked. Just entered physical folder name in Rewrite Base line as this GS has not its domain with main folder (yet).

BTW - I would like to check how it happened - are there any .php files in admin/ that mingle-tingle with .htaccess after install?
Reply
#4
You might had problems with rights to save files.
Look into errorlog if there appeared a note about this.

There are no further changes in .htaccess file using clean GS instance.
Addons: blue business theme, Online Visitors, Notepad
Reply




Users browsing this thread: 1 Guest(s)