Jump to content

Recommended Posts

hi

 

i am using a cms which requires mod_rewrite to be enabled for seo urls

 

in the wamp 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

Link to comment
https://forums.phpfreaks.com/topic/186912-mod-rewrite/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.