Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

mod rewrite

1 view
Skip to first unread message

Sudhakar

unread,
Jan 2, 2010, 2:53:53 AM1/2/10
to
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

Luuk

unread,
Jan 2, 2010, 5:26:44 AM1/2/10
to
Op 2-1-2010 8:53, Sudhakar schreef:

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

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

rf

unread,
Jan 2, 2010, 5:50:12 AM1/2/10
to

"Sudhakar" <sudhak...@gmail.com> wrote in message
news:7f0a4548-954a-43d1...@35g2000yqa.googlegroups.com...

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

Which has nothing to do with PHP.

"Álvaro G. Vicario"

unread,
Jan 4, 2010, 3:29:05 AM1/4/10
to
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.


> 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
--

Michael Fesser

unread,
Jan 4, 2010, 7:02:13 AM1/4/10
to
.oO(�lvaro G. Vicario)

>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

"Álvaro G. Vicario"

unread,
Jan 4, 2010, 8:00:35 AM1/4/10
to
El 04/01/2010 13:02, Michael Fesser escribi�:

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

0 new messages