/    Sign up×
Community /Pin to ProfileBookmark

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

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@chris22Jan 03.2010 — AFAIK you can't load modules via .htaccess file. All you can do with .htaccess is to manage settings/parameters of modules which are already loaded in httpd.conf (apache.conf) files.
×

Success!

Help @sudhakararaog spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.21,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...