GetSimple Support Forum

Full Version: Still can't turn on mod_rewrite
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I need to turn on Fancy URLs but can't seem to get mod_rewrite turned on.

I've researched the posts and the wiki, as well as Apache documentation. I've just done a fresh install on my host and the Website Health Check keeps reporting that mod_rewrite is not turned on. Everything else reports as OK.

I've edited this section in the htaccess file within the GSCMS root folder (which is in a subfolder of my own website) and this is what is contains for the mod_rewrite:

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

    # Usually RewriteBase is just '/', but
    # replace it with your subdirectory path
    RewriteBase /opt/the_host_name/clients/my_name/home/public_html/gscms_subfolder/

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

I've used the Flush All Caches in the cms as well as flushing caches in Firefox.

There is no mention of mod_rewrite in my phpinfo.php output.

What have I done wrong?

I'm using GSCMS v3.3.4 and haven't yet installed any plugins.

Thanks in advance!
you need to turn it on in apache conf
(2014-10-21, 08:15:53)shawn_a Wrote: [ -> ]you need to turn it on in apache conf

Thanks for the quick reply, Shawn!

Got the following from StackOverflow. Is this what you mean?

"To activate the module, the following line in httpd.conf needs to be active:
LoadModule rewrite_module modules/"

Is this why it doesn't show up in phpinfo.php, because it's not loaded?
yup, extensions have to be enabled, usually they already are, most are, but if you are using an odd host or a wamp/lamp install its possible it wasnt setup, some of these can be pretty shitty.

in easyphp mine is
LoadModule rewrite_module modules/
comment it out if it has a # in front
Thanks again. I appreciate the lesson!