Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
url rewriting
#1
Hello,

Excuse me for my english, I am french Smile

I use Gs 3.3.4 and I come to you because I have a problem when I enable the url rewriting, I have a 500 Internal Server Error page.
The module mod_rewrite is enabled on the server, my hoster has confirmed me.

I think that the problem is the .htaccess file, but I can not find the problem.

Thanks.

Joffrey

Code:
#
# GetSimple CMS htaccess ROOT file
# apache 2.4
#

# The following require certain allow overrides, if getting 500 error comment them out one by one
# can be resolved in apache httpd.conf to ensure security alternatives

# override charset
AddDefaultCharset UTF-8

# prevent directory listings
Options -Indexes

# Follow symbolink links, This is required for rewrites on some hosts
Options +FollowSymLinks

# Set the default handler.
DirectoryIndex index.php

# blocks direct access to the XML files - they hold all the data!
<Files ~ "\.xml$">
    <IfModule !mod_authz_core.c>
        Deny from all
    </IfModule>
    <IfModule mod_access_compat.c>
        Deny from all
    </IfModule>
    <IfModule mod_authz_core.c>
        <IfModule !mod_access_compat.c>
            Require all denied
        </IfModule>
    </IfModule>    
</Files>

<Files sitemap.xml>
    <IfModule !mod_authz_core.c>
        Allow from all
    </IfModule>
    <IfModule mod_access_compat.c>
        Allow from all
    </IfModule>
    <IfModule mod_authz_core.c>
        <IfModule !mod_access_compat.c>
            Require all granted
        </IfModule>
    </IfModule>    
</Files>

# handle rewrites for fancy urls
<IfModule mod_rewrite.c>
    RewriteEngine on

    # Usually RewriteBase is just '/', but
    # replace it with your subdirectory path
    RewriteBase /~joffta/
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule /?([A-Za-z0-9_-]+)/?$ index.php?id=$1 [QSA,L]
</IfModule>
Reply


Messages In This Thread
url rewriting - by Joffrey - 2014-12-23, 06:50:48
RE: url rewriting - by shawn_a - 2014-12-23, 07:04:23
RE: url rewriting - by Joffrey - 2014-12-23, 18:55:53
RE: url rewriting - by phpman - 2014-12-31, 05:55:30
RE: url rewriting - by shawn_a - 2014-12-31, 09:35:42
RE: url rewriting - by phpman - 2015-01-01, 05:42:12
RE: url rewriting - by shawn_a - 2015-01-01, 09:03:07
RE: url rewriting - by phpman - 2015-01-01, 21:16:51
RE: url rewriting - by shawn_a - 2015-01-02, 03:31:29
RE: url rewriting - by phpman - 2015-01-02, 05:11:45
RE: url rewriting - by shawn_a - 2015-01-02, 06:41:10



Users browsing this thread: 1 Guest(s)