DeveloperSide.NET Forums
July 13, 2020, 05:02:50 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Is it Possilble to enable MOD_REWRITE  (Read 10643 times)
0 Members and 1 Guest are viewing this topic.
Wilz
Member
*
Posts: 26


View Profile
« on: June 19, 2007, 09:17:20 AM »

Hello, is it possible to enable MOD REWRITE on a local windows server running this server suite if so, can you explain to me as to how to enable this mod. I need it to be enabled, so I can make a php script, user friendly with search engines.

Cheers.
Logged
admin
Administrator
Master of All Subjects
*****
Posts: 3272


View Profile WWW Email
« Reply #1 on: June 19, 2007, 02:35:48 PM »

Its already enabled...
You will find a line under httpd.conf...
LoadModule rewrite_module modules/mod_rewrite.so
Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
esadot
Member
*
Posts: 9


View Profile Email
« Reply #2 on: July 08, 2007, 03:31:23 PM »

I've the same issue. Mod Rewrite is not working. Appreciate any help.

1. LoadModule rewrite_module modules/mod_rewrite.so is uncomment at httpd.conf.
2. These are the lines that i presume relevant in .htaccess:
# Various rewrite rules.
<IfModule mod_rewrite.c>
  RewriteEngine on

  # If your site can be accessed both with and without the prefix www. you
  # can use one of the following settings to force user to use only one option:
  #
  # If you want the site to be accessed WITH the www. only, adapt and
  # uncomment the following:
  # RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
  # RewriteRule .* http://www.example.com/ [L,R=301]
  #
  # If you want the site to be accessed only WITHOUT the www. prefix, adapt
  # and uncomment the following:
  # RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]
  # RewriteRule .* http://example.com/ [L,R=301]

  # Modify the RewriteBase if you are using Drupal in a subdirectory and
  # the rewrite rules are not working properly.
  #RewriteBase /drupal

  # Rewrite old-style URLs of the form 'node.php?id=x'.
  #RewriteCond %{REQUEST_FILENAME} !-f
  #RewriteCond %{REQUEST_FILENAME} !-d
  #RewriteCond %{QUERY_STRING} ^id=([^&]+)$
  #RewriteRule node.php index.php?q=node/view/%1 [L]

  # Rewrite old-style URLs of the form 'module.php?mod=x'.
  #RewriteCond %{REQUEST_FILENAME} !-f
  #RewriteCond %{REQUEST_FILENAME} !-d
  #RewriteCond %{QUERY_STRING} ^mod=([^&]+)$
  #RewriteRule module.php index.php?q=%1 [L]

  # Rewrite current-style URLs of the form 'index.php?q=x'.
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
</IfModule>

Thanks in advance,
Logged
admin
Administrator
Master of All Subjects
*****
Posts: 3272


View Profile WWW Email
« Reply #3 on: July 08, 2007, 05:25:19 PM »

Not working how? Example please. Also, is mod_rewrite showing up in the modules section of WDController.exe?
« Last Edit: July 08, 2007, 05:32:50 PM by admin » Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
esadot
Member
*
Posts: 9


View Profile Email
« Reply #4 on: July 08, 2007, 09:25:42 PM »

Fair enough.

I'm running Drupal, and (for the first time) Zen Cart. Drupal clean-url test fails, and during Zen Cart installation i got a warning saying that cURL is not enabled.

mod_rewrite.so is showing under Apache Modules.

Thanks in advance,
Logged
admin
Administrator
Master of All Subjects
*****
Posts: 3272


View Profile WWW Email
« Reply #5 on: July 08, 2007, 10:20:54 PM »

The rewrite module is working fine. This is a Drupal issue... I think you need to enable a few Drupal modules before you can run clean-url. And you can enable the php curl extension under C:\Windows\php.ini
Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
najibx
Member
*
Posts: 1


View Profile Email
« Reply #6 on: October 09, 2007, 05:20:02 AM »

The rewrite module is working fine for http://localhost/drupal
Is it only restricted to domain "http://localhost".

I have created another domain and it's not working. I also copy .htaccess of my previous installation (Wamp5), still no luck.

Thank for your help, I wanted to use this because of the OpenSSL support for SMTP.
Logged
admin
Administrator
Master of All Subjects
*****
Posts: 3272


View Profile WWW Email
« Reply #7 on: October 09, 2007, 09:43:57 AM »

http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html
Quote
By default, mod_rewrite configuration settings from the main server context are not inherited by virtual hosts. To make the main server settings apply to virtual hosts, you must place the following directives in each <VirtualHost> section:

RewriteEngine On
RewriteOptions Inherit

Make sure you have that 1st line within your VH block.
« Last Edit: October 09, 2007, 09:47:52 AM by admin » Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!