mod rewrite

Mod rewrite, a forum discussion on Jojo CMS. Join us for more discussions on Mod rewrite on our Installation forum.

Back to Forum Index : Back to Installation   RSS
sudhakararaog

2 Jan 2010
Posts: 9

hi

i need the mod_rewrite to be enabled on my web hosting

in the wamp server that i use in my local machine in the httpd.conf file i have this line and removed the comment
LoadModule rewrite_module modules/mod_rewrite.so

when i view the phpinfo i can see that mod_rewrite is on in the Loaded Modules

i am guessing that my hosting might not allow to edit the httpd.conf file so i tried adding the following to the .htaccess which is in the root directory

Options +FollowSymLinks
RewriteEngine On
RewriteBase /

and uploaded the .htaccess file and when i viewed the phpinfo i do not see mod_rewrite for my webserver

also on my server i would be installing the cms in a separate folder after the root directory, so i guess the .htaccess file should be
Options +FollowSymLinks
RewriteEngine On
RewriteBase /foldername


how do i go about enabling mod_rewrite in the .htaccess file as i might not be able to edit httpd.conf

please advice.

thanks
Harvey

Core Developer

Harvey

4 Jan 2010
Posts: 327

If it's your server/VPS, then edit the httpd.conf and restart Apache, just like you did on Windows. If it's shared hosting, you will need to ask the web host to enable it for you.

However, to be honest - if a web host doesn't have mod_rewrite enabled I would be a bit worried about the quality of the hosting. Most modern packages make use of URL rewrites these days and it's the sort of thing I would expect turned on by default on any good host.

My 2c.
Jaijaz Jaijaz

6 Jan 2010
Posts: 215

I have had experience with hosts that allow you to create a php.ini file for your account and control some things. If your host allowed it then you should be able to find something about it in their knowledge base.

For my 2c worth I agree with Harvey. mod_rewrite is so common that a hosting company that doesn't have it on isn't really running by modern standards.
If you not living on the edge you taking up too much space.
Back to Forum Index : Back to Installation   RSS
You must be logged in to post a reply



You need to Register or Log In before posting on these forums.