Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GetSimple in subdir, Fancy URL's and htaccess get error instead 404
#1
Hi!

I install latest GetSimple and NewsManger in subdir. I want using Fancy URL's schemes which hide subdir for GS. For this i take instructions from wiki http://get-simple.info/wiki/config:htaccess "Installing into subdir whilst keeping root relative Fancy URL's"

My result .htaccess is

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 RewriteBase is just '/', but
# replace it with your subdirectory path
RewriteBase /gs/

RewriteRule ^news/tag/([^/.]+)/?$ index.php?id=news&tag=$1 [L]
RewriteRule ^news/post/([^/.]+)/?$ index.php?id=news&post=$1 [L]
RewriteRule ^news/page/([^/.]+)/?$ index.php?id=news&page=$1 [L]
RewriteRule ^news/archive/([^/.]+)/?$ index.php?id=news&archive=$1 [L]

# fix RewriteRule ^about/?$ index.php?id=about [L]
# fix RewriteRule ^info/?$ index.php?id=info [L]
# fix RewriteRule ^news/?$ index.php?id=news [L]

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

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d [OR]
RewriteCond %{REQUEST_URI} =/
RewriteRule ^(.*)$ /gs/$1 [L]

And this don't work correctly.
If i try navigate to mysite.com/info - i get error

[Sun Nov 18 10:57:29 2012] [error] [client 8.4.3.1] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.

but if navigate to news url with complete path like http://mysite.com/news/post/somenews - everything is fine.

For temporary workaround i write rules in .htaccess - "# fix"
but i still get errors if i like try navigate to http://mysite.com/info2 or something like that.

what wrong with my htaccess?
Reply




Users browsing this thread: 1 Guest(s)