Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Still can't turn on mod_rewrite
#1
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:

Code:
# 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]
</IfModule>

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!
Reply
#2
you need to turn it on in apache conf
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#3
(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/mod_rewrite.so"

Is this why it doesn't show up in phpinfo.php, because it's not loaded?
Reply
#4
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/mod_rewrite.so
comment it out if it has a # in front
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#5
Thanks again. I appreciate the lesson!
Reply




Users browsing this thread: 1 Guest(s)