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
i also use somethings
>
>
> i am guessing that my hosting might not allow to edit the httpd.conf
i also guess
>
> after the root directory, so i guess the .htaccess file should be
me guesses another time
>
> please advice.
me advices to ask this questions at a place that is dealing with
question about apache
>
> thanks
thanks.
--
Luuk
Which has nothing to do with PHP.
That's normal: mod_rewrite is not a PHP extension so it won't show up in
phpinfo(). Just test whether it works.
> 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
As I said, it's completely off-topic here. Your best resources are
http://httpd.apache.org/docs/2.2/en/ and the alt.apache.configuration
newsgroup. However, it's pretty likely that your hosting company has
specific documentation about enabling Apache stuff in their servers.
--
-- http://alvaro.es - �lvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programaci�n web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--
>El 02/01/2010 8:53, Sudhakar escribi�:
>> 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
>
>That's normal: mod_rewrite is not a PHP extension so it won't show up in
>phpinfo(). Just test whether it works.
JFTR: If PHP runs as an Apache module, phpinfo() also shows informations
about the server itself, including the loaded modules.
Micha
You are right. Sorry for the misinformation.
Configuration
apache2handler
Apache Version Apache/2.2.13 (Win32) PHP/5.3.0
Apache API Version 20051115
Server Administrator ad...@example.com
Hostname:Port example.com:0
Max Requests Per Child: 0 - Keep Alive: on - Max Per Connection: 100
Timeouts Connection: 300 - Keep-Alive: 5
Virtual Server Yes
Server Root C:/Archivos de programa/Apache Software Foundation/Apache2.2
Loaded Modules core mod_win32 mpm_winnt http_core mod_so mod_actions
mod_alias mod_asis mod_auth_basic mod_authn_default mod_authn_file
mod_authz_default mod_authz_groupfile mod_authz_host mod_authz_user
mod_autoindex mod_cgi mod_dir mod_env mod_headers mod_include mod_isapi
mod_log_config mod_mime mod_negotiation mod_rewrite mod_setenvif mod_php5