Need to run a site from sub-directory but the URL reflects root directory

Hello, I would like to run a php CMS (drupal) installed in sub-directory but I want the URL not to show the name of the subdirectory.

Example:

Root directory: www.example.com
CMS installed in: www.example.com/cms/index.php
User to see: www.example.com/index.php

I do not have access to Apache configuration other than .htaccess and php.ini.

Please kindly give me the exact code I would put in .htaccess.
polaatxAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

paragh_rughaniCommented:
Hi,

There are two cases, one is that your cms/index.php has a code that redirects to parent index file or other is .htaccess.

If you've not modified any thing in .htaccess then remove all the content and that will solve your problem.

Thanks
0
polaatxAuthor Commented:
Hi, I would like to use the second method: use the htaccess.

<quote>If you've not modified any thing in .htaccess then remove all the content and that will solve your problem.</quote>

I am not sure what you mean. Below is the htaccess that comes with the drupal cms.

Actually I am not sure if I should put it in the root directory or in the subdirectory it will be installed in or BOTH. please tell me that and also how I should modify it so the URL reflects what I'm trying to do.
#
# Apache/PHP/Drupal settings:
#
 
# Protect files and directories from prying eyes.
<FilesMatch "\.(engine|inc|info|install|module|profile|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)$|^(code-style\.pl|Entries.*|Repository|Root|Tag|Template)$">
  Order allow,deny
</FilesMatch>
 
# Don't show directory listings for URLs which map to a directory.
Options -Indexes
 
# Follow symbolic links in this directory.
Options +FollowSymLinks
 
# Customized error messages.
ErrorDocument 404 /index.php
 
# Set the default handler.
DirectoryIndex index.php
 
 
 
# Override PHP settings. More in sites/default/settings.php
# but the following cannot be changed at runtime.
 
# PHP 4, Apache 1.
<IfModule mod_php4.c>
  php_value magic_quotes_gpc                0
  php_value register_globals                0
  php_value session.auto_start              0
  php_value mbstring.http_input             pass
  php_value mbstring.http_output            pass
  php_value mbstring.encoding_translation   0
</IfModule>
 
# PHP 4, Apache 2.
<IfModule sapi_apache2.c>
  php_value magic_quotes_gpc                0
  php_value register_globals                0
  php_value session.auto_start              0
  php_value mbstring.http_input             pass
  php_value mbstring.http_output            pass
  php_value mbstring.encoding_translation   0
</IfModule>
 
# PHP 5, Apache 1 and 2.
<IfModule mod_php5.c>
  php_value magic_quotes_gpc                0
  php_value register_globals                0
  php_value session.auto_start              0
  php_value mbstring.http_input             pass
  php_value mbstring.http_output            pass
  php_value mbstring.encoding_translation   0
</IfModule>
 
# Requires mod_expires to be enabled.
<IfModule mod_expires.c>
  # Enable expirations.
  ExpiresActive On
  # Cache all files for 2 weeks after access (A).
  ExpiresDefault A1209600
  # Do not cache dynamically generated pages.
  ExpiresByType text/html A1
</IfModule>
 
# Various rewrite rules.
<IfModule mod_rewrite.c>
  RewriteEngine on
 
  # If your site can be accessed both with and without the 'www.' prefix, you
  # can use one of the following settings to redirect users to your preferred
  # URL, either WITH or WITHOUT the 'www.' prefix. Choose ONLY one option:
  #
  # To redirect all users to access the site WITH the 'www.' prefix,
  # (http://example.com/... will be redirected to http://www.example.com/...)
  # adapt and uncomment the following:
  # RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
  # RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
  #
  # To redirect all users to access the site WITHOUT the 'www.' prefix,
  # (http://www.example.com/... will be redirected to http://example.com/...)
  # uncomment and adapt the following:
  # RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]
  # RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]
 
  # Modify the RewriteBase if you are using Drupal in a subdirectory or in a
  # VirtualDocumentRoot and the rewrite rules are not working properly.
  # For example if your site is at http://example.com/drupal uncomment and
  # modify the following line:
  # RewriteBase /drupal
  #
  # If your site is running in a VirtualDocumentRoot at http://example.com/,
  # uncomment the following line:
  # RewriteBase /
 
  # 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>
 
# $Id: .htaccess,v 1.81.2.4 2008/01/22 09:01:39 drumm Exp $

Open in new window

0
ravenplCommented:
Try www.example.com/.htaccess with content

Options +FollowSymLinks
RweriteEngine On
#all traffic to subdirectory, no user notification
RewriteRule (.*) cms/$1 [L]
0
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

polaatxAuthor Commented:
Hello, I created the following htaccess and put it in my root.

I get the following error now:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator  and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.37 Server at www.projectharambee.org Port 80
Options +FollowSymLinks
RweriteEngine On
#all traffic to subdirectory, no user notification
RewriteRule (.*) cms/$1 [L]

Open in new window

0
ravenplCommented:
Yes, I was wrong. This causes infinite loop.
Options +FollowSymLinks
RweriteEngine On
#all traffic to subdirectory, no user notification
RewriteCond ${REQUEST_URI} !^cms/
RewriteRule (.*) cms/$1 [L]

Open in new window

0
polaatxAuthor Commented:
Hello, I still get the same error:

http://projectharambee.org/

note: i just put your code in a txt file and renamed it .htaccess. There's nothing else in the file.
0
ravenplCommented:
OK, maybe You not allowed to change options?
Please refer Your apache's error log,
try removing "Options +FollowSymLinks"
0
polaatxAuthor Commented:
Hello,

I still get the error, after removing "Options +FollowSymLinks"

Below is the last few pages of the log.

My code right now is:

RweriteEngine On
#all traffic to subdirectory, no user notification
RewriteCond ${REQUEST_URI} !^cms/
RewriteRule (.*) cms/$1 [L]


66.231.188.117 - - [06/Feb/2008:01:12:45 -0500] "GET /2007 HTTP/1.0" 500 - "-" "Gigabot/3.0 (http://www.gigablast.com/spider.html)"
74.6.19.121 - - [06/Feb/2008:01:22:55 -0500] "GET /robots.txt HTTP/1.0" 500 - "-" "Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)"
74.6.25.118 - - [06/Feb/2008:01:22:55 -0500] "GET / HTTP/1.0" 500 - "-" "Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)"
75.80.30.225 - - [06/Feb/2008:02:53:20 -0500] "GET / HTTP/1.1" 500 - "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11"
75.80.30.225 - - [06/Feb/2008:02:53:21 -0500] "GET /favicon.ico HTTP/1.1" 500 - "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11"
75.80.30.225 - - [06/Feb/2008:02:53:23 -0500] "GET / HTTP/1.1" 500 - "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11"
75.80.30.225 - - [06/Feb/2008:02:53:25 -0500] "GET / HTTP/1.1" 500 - "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11"
77.91.224.13 - - [06/Feb/2008:02:55:43 -0500] "GET /robots.txt HTTP/1.1" 500 - "-" "WebAlta Crawler/2.0 (http://www.webalta.net/ru/about_webmaster.html) (Windows; U; Windows NT 5.1; ru-RU)"
77.91.224.13 - - [06/Feb/2008:02:55:43 -0500] "GET / HTTP/1.1" 500 - "-" "WebAlta Crawler/2.0 (http://www.webalta.net/ru/about_webmaster.html) (Windows; U; Windows NT 5.1; ru-RU)"
83.19.119.245 - - [06/Feb/2008:03:19:54 -0500] "GET / HTTP/1.1" 500 - "http://www.experts-exchange.com/Software/Server_Software/Web_Servers/Apache/Q_23134087.html" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.10) Gecko/20071128 Fedora/2.0.0.10-2.fc7 Firefox/2.0.0.10"
83.19.119.245 - - [06/Feb/2008:03:19:54 -0500] "GET /favicon.ico HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.10) Gecko/20071128 Fedora/2.0.0.10-2.fc7 Firefox/2.0.0.10"
83.19.119.245 - - [06/Feb/2008:03:21:32 -0500] "GET /favicon.ico HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.10) Gecko/20071128 Fedora/2.0.0.10-2.fc7 Firefox/2.0.0.10"
65.55.209.249 - - [06/Feb/2008:03:55:20 -0500] "GET /robots.txt HTTP/1.1" 500 - "-" "msnbot/1.0 (+http://search.msn.com/msnbot.htm)"
65.55.209.249 - - [06/Feb/2008:03:55:20 -0500] "GET /node/372?PHPSESSID=2bc2a6f6c357e426f386a8043457afba HTTP/1.1" 500 - "-" "msnbot/1.0 (+http://search.msn.com/msnbot.htm)"
66.249.72.169 - - [06/Feb/2008:05:15:54 -0500] "GET /img_assist/load/preview/533?PHPSESSID=4ab8e4c953d0b8d44f5a66941ead06a8 HTTP/1.1" 500 - "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
66.249.72.169 - - [06/Feb/2008:05:38:49 -0500] "GET /img_assist/load/preview/440?PHPSESSID=dee6f6afba706bd61fef4e7608f956da HTTP/1.1" 500 - "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
74.6.19.121 - - [06/Feb/2008:05:59:59 -0500] "GET /robots.txt HTTP/1.0" 500 - "-" "Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)"
74.6.20.229 - - [06/Feb/2008:05:59:59 -0500] "GET /honey HTTP/1.0" 500 - "-" "Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)"
66.249.72.169 - - [06/Feb/2008:06:05:17 -0500] "GET /img_assist/load/preview/90?PHPSESSID=f161eb4c863f2555134cd70dc0e48d9b HTTP/1.1" 500 - "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
75.33.233.91 - - [06/Feb/2008:06:24:43 -0500] "GET / HTTP/1.1" 500 - "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; YPC 3.2.0; .NET CLR 1.1.4322; yplus 5.1.04b)"
75.33.233.91 - - [06/Feb/2008:06:24:43 -0500] "GET /favicon.ico HTTP/1.1" 500 - "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; YPC 3.2.0; .NET CLR 1.1.4322)"
75.33.233.91 - - [06/Feb/2008:06:25:03 -0500] "GET /user HTTP/1.1" 500 - "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; YPC 3.2.0; .NET CLR 1.1.4322; yplus 5.1.04b)"
208.146.45.110 - - [06/Feb/2008:06:27:42 -0500] "GET /themes/chameleon/marvin/style.css HTTP/1.1" 500 - "-" "Mozilla/4.0 (compatible;)"
66.249.72.169 - - [06/Feb/2008:06:53:04 -0500] "GET /img_assist/load/preview/238?PHPSESSID=79b3e18de60e7f9be69d764571bdd1e5 HTTP/1.1" 500 - "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
75.4.145.24 - - [06/Feb/2008:07:00:24 -0500] "GET / HTTP/1.1" 500 - "-" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9"
65.55.213.57 - - [06/Feb/2008:07:26:52 -0500] "GET /robots.txt HTTP/1.0" 500 - "-" "msnbot-media/1.0 (+http://search.msn.com/msnbot.htm)"
66.249.72.169 - - [06/Feb/2008:08:14:50 -0500] "GET /img_assist/load/preview/477?PHPSESSID=99ad0de3e7eab5dbb5b15002226e1a8e HTTP/1.1" 500 - "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
24.14.91.222 - - [06/Feb/2008:09:36:17 -0500] "GET / HTTP/1.1" 500 - "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)"
24.14.91.222 - - [06/Feb/2008:09:36:29 -0500] "GET / HTTP/1.1" 500 - "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)"
65.55.213.57 - - [06/Feb/2008:10:04:50 -0500] "GET /robots.txt HTTP/1.0" 500 - "-" "msnbot-media/1.0 (+http://search.msn.com/msnbot.htm)"
64.1.215.163 - - [06/Feb/2008:10:06:45 -0500] "GET /taxonomy/term/6 HTTP/1.0" 500 - "-" "Mozilla/5.0 (Twiceler-0.9 http://www.cuill.com/twiceler/robot.html)"
65.55.213.57 - - [06/Feb/2008:10:29:44 -0500] "GET /robots.txt HTTP/1.0" 500 - "-" "msnbot-media/1.0 (+http://search.msn.com/msnbot.htm)"
66.231.188.78 - - [06/Feb/2008:10:30:08 -0500] "GET /robots.txt HTTP/1.0" 500 - "-" "Gigabot/3.0 (http://www.gigablast.com/spider.html)"
66.231.188.117 - - [06/Feb/2008:10:30:08 -0500] "GET /home HTTP/1.0" 500 - "-" "Gigabot/3.0 (http://www.gigablast.com/spider.html)"
147.126.198.155 - - [06/Feb/2008:11:00:31 -0500] "GET / HTTP/1.1" 500 - "-" "Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11"
147.126.198.155 - - [06/Feb/2008:11:00:32 -0500] "GET /favicon.ico HTTP/1.1" 500 - "-" "Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11"
74.6.19.71 - - [06/Feb/2008:12:21:04 -0500] "GET /robots.txt HTTP/1.0" 500 - "-" "Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)"
74.6.19.201 - - [06/Feb/2008:12:21:04 -0500] "GET /newsletter1 HTTP/1.0" 500 - "-" "Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)"
64.1.215.163 - - [06/Feb/2008:12:53:20 -0500] "GET /feedback HTTP/1.0" 500 - "-" "Mozilla/5.0 (Twiceler-0.9 http://www.cuill.com/twiceler/robot.html)"
149.169.189.66 - - [06/Feb/2008:13:22:55 -0500] "GET / HTTP/1.1" 500 - "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)"
12.160.1.66 - - [06/Feb/2008:14:00:41 -0500] "GET /node/371 HTTP/1.1" 500 - "http://us.f353.mail.yahoo.com/ym/ShowLetter?MsgId=9916_3003332_5889_2176_4990_0_17397_12111_3035376929&Idx=5&YY=92407&y5beta=yes&y5beta=yes&inc=25&order=down&sort=date&pos=0&view=a&head=b&box=Inbox" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; .NET CLR 1.1.4322; InfoPath.2)"
147.126.198.155 - - [06/Feb/2008:14:01:38 -0500] "GET / HTTP/1.1" 500 - "-" "Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11"
71.252.22.224 - - [06/Feb/2008:14:22:20 -0500] "GET /volunteers HTTP/1.1" 500 - "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"
66.249.72.169 - - [06/Feb/2008:14:24:24 -0500] "GET /blog/modules/event/event.js HTTP/1.1" 500 - "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
66.249.72.169 - - [06/Feb/2008:14:25:24 -0500] "GET /blog/modules/event/event.js HTTP/1.1" 500 - "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
66.249.72.169 - - [06/Feb/2008:14:26:24 -0500] "GET /blog/modules/event/event.js HTTP/1.1" 500 - "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
66.249.72.169 - - [06/Feb/2008:14:27:24 -0500] "GET /blog/modules/event/event.js HTTP/1.1" 500 - "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
72.54.120.217 - - [06/Feb/2008:15:09:00 -0500] "GET / HTTP/1.1" 500 - "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11"
207.161.204.43 - - [06/Feb/2008:15:49:32 -0500] "GET /images/goat/goat2.jpg HTTP/1.1" 500 - "http://www.geocities.com/river1phoenix/pic/con1.jpg" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)"
74.6.19.71 - - [06/Feb/2008:15:56:29 -0500] "GET /robots.txt HTTP/1.0" 500 - "-" "Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)"
74.6.20.158 - - [06/Feb/2008:15:56:29 -0500] "GET /emailpage&nid=248 HTTP/1.0" 500 - "-" "Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)"
72.54.120.217 - - [06/Feb/2008:16:07:44 -0500] "GET / HTTP/1.1" 500 - "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11"
72.54.120.217 - - [06/Feb/2008:16:07:44 -0500] "GET /favicon.ico HTTP/1.1" 500 - "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11"

Open in new window

0
ravenplCommented:
The log You provided is access.log, Look at the error log.
0
polaatxAuthor Commented:
Hello, below you see the error logs.
The Rewrite word was misspelled.
I fixed it.
However, i still get an INTERNAL ERROR msg.  http://www.projectharambee.org/
But the funny thing is that the error list does not change. The last error is still the one you see on top of the list from 4:55 pm. I waited an hour and still error list hasn't changed.

Code is now:

RewriteEngine On
#all traffic to subdirectory, no user notification
RewriteCond ${REQUEST_URI} !^cms/
RewriteRule (.*) cms/$1 [L]

Error Log
Last 300 Error Log Messages in reverse order:
 
[Wed Feb  6 16:55:22 2008] [alert] [client 74.6.24.24] /home/harambee/public_html/.htaccess: Invalid command 'RweriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
[Wed Feb  6 16:55:22 2008] [alert] [client 74.6.24.24] /home/harambee/public_html/.htaccess: Invalid command 'RweriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
[Wed Feb  6 16:55:22 2008] [alert] [client 74.6.19.71] /home/harambee/public_html/.htaccess: Invalid command 'RweriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
[Wed Feb  6 16:55:22 2008] [alert] [client 74.6.19.71] /home/harambee/public_html/.htaccess: Invalid command 'RweriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
[Wed Feb  6 16:07:44 2008] [alert] [client 72.54.120.217] /home/harambee/public_html/.htaccess: Invalid command 'RweriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
[Wed Feb  6 16:07:44 2008] [alert] [client 72.54.120.217] /home/harambee/public_html/.htaccess: Invalid command 'RweriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
[Wed Feb  6 16:07:44 2008] [alert] [client 72.54.120.217] /home/harambee/public_html/.htaccess: Invalid command 'RweriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
[Wed Feb  6 16:07:43 2008] [alert] [client 72.54.120.217] /home/harambee/public_html/.htaccess: Invalid command 'RweriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
[Wed Feb  6 15:56:29 2008] [alert] [client 74.6.20.158] /home/harambee/public_html/.htaccess: Invalid command 'RweriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
[Wed Feb  6 15:56:29 2008] [alert] [client 74.6.20.158] /home/harambee/public_html/.htaccess: Invalid command 'RweriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
[Wed Feb  6 15:56:29 2008] [alert] [client 74.6.19.71] /home/harambee/public_html/.htaccess: Invalid command 'RweriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
[Wed Feb  6 15:56:29 2008] [alert] [client 74.6.19.71] /home/harambee/public_html/.htaccess: Invalid command 'RweriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
[Wed Feb  6 15:49:32 2008] [alert] [client 207.161.204.43] /home/harambee/public_html/.htaccess: Invalid command 'RweriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
[Wed Feb  6 15:49:32 2008] [alert] [client 207.161.204.43] /home/harambee/public_html/.htaccess: Invalid command 'RweriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
[Wed Feb  6 15:09:00 2008] [alert] [client 72.54.120.217] /home/harambee/public_html/.htaccess: Invalid command 'RweriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
[Wed Feb  6 15:09:00 2008] [alert] [client 72.54.120.217] /home/harambee/public_html/.htaccess: Invalid command 'RweriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
[Wed Feb  6 14:27:24 2008] [alert] [client 66.249.72.169] /home/harambee/public_html/.htaccess: Invalid command 'RweriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
[Wed Feb  6 14:27:24 2008] [alert] [client 66.249.72.169] /home/harambee/public_html/.htaccess: Invalid command 'RweriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
[Wed Feb  6 14:26:24 2008] [alert] [client 66.249.72.169] /home/harambee/public_html/.htaccess: Invalid command 'RweriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
[Wed Feb  6 14:26:24 2008] [alert] [client 66.249.72.169] /home/harambee/public_html/.htaccess: Invalid command 'RweriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
[Wed Feb  6 14:25:24 2008] [alert] [client 66.249.72.169] /home/harambee/public_html/.htaccess: Invalid command 'RweriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
[Wed Feb  6 14:25:24 2008] [alert] [client 66.249.72.169] /home/harambee/public_html/.htaccess: Invalid command 'RweriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
[Wed Feb  6 14:24:24 2008] [alert] [client 66.249.72.169] /home/harambee/public_html/.htaccess: Invalid command 'RweriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
[Wed Feb  6 14:24:24 2008] [alert] [client 66.249.72.169] /home/harambee/public_html/.htaccess: Invalid command 'RweriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
[Wed Feb  6 14:22:20 2008] [alert] [client 71.252.22.224] /home/harambee/public_html/.htaccess: Invalid command 'RweriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
[Wed Feb  6 14:22:20 2008] [alert] [client 71.252.22.224] /home/harambee/public_html/.htaccess: Invalid command 'RweriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
[Wed Feb  6 14:01:38 2008] [alert] [client 147.126.198.155] /home/harambee/public_html/.htaccess: Invalid command 'RweriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
[Wed Feb  6 14:01:38 2008] [alert] [client 147.126.198.155] /home/harambee/public_html/.htaccess: Invalid command 'RweriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
[Wed Feb  6 14:00:41 2008] [alert] [client 12.160.1.66] /home/harambee/public_html/.htaccess: Invalid command 'RweriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
[Wed Feb  6 14:00:41 2008] [alert] [client 12.160.1.66] /home/harambee/public_html/.htaccess: Invalid command 'RweriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
[Wed Feb  6 13:22:55 2008] [alert] [client 149.169.189.66] /home/harambee/public_html/.htaccess: Invalid command 'RweriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
[Wed Feb  6 13:22:55 2008] [alert] [client 149.169.189.66] /home/harambee/public_html/.htaccess: Invalid command 'RweriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
[Wed Feb  6 12:53:20 2008] [alert] [client 64.1.215.163] /home/harambee/public_html/.htaccess: Invalid command 'RweriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
[Wed Feb  6 12:53:20 2008] [alert] [client 64.1.215.163] /home/harambee/public_html/.htaccess: Invalid command 'RweriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
[Wed Feb  6 12:21:04 2008] [alert] [client 74.6.19.201] /home/harambee/public_html/.htaccess: Invalid command 'RweriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
[Wed Feb  6 12:21:04 2008] [alert] [client 74.6.19.201] /home/harambee/public_html/.htaccess: Invalid command 'RweriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
[Wed Feb  6 12:21:04 2008] [alert] [client 74.6.19.71] /home/harambee/public_html/.htaccess: Invalid command 'RweriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
[Wed Feb  6 12:21:04 2008] [alert] [client 74.6.19.71] /home/harambee/public_html/.htaccess: Invalid command 'RweriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration

Open in new window

0
ravenplCommented:
Yep, the rewrite_mod is not loaded or compiled in.
The usual httpd.conf line to load mod_rewrite is

LoadModule rewrite_module modules/mod_rewrite.so

Do You have one? If not, add, and restart apache.
0
polaatxAuthor Commented:
Hello, I am on a shared hosting server. As far as I know, I don't have access to httpd.conf.

I am writing to my host about this.

But I do recall that mod_rewrite has to be loaded for Drupal to provide clean URL's and I do have clean URL's, which means mod_rewrite is enabled. http://drupal.org/node/15365

Would you please tell me how you know that mod_rewrite is not loaded?
0
ravenplCommented:
> Invalid command 'RweriteEngine'
means that mod_rewrite was not loaded. OOhh wait - I misspelled it !!
It should be RewriteEngine - I'm really sorry, especially that I haven't noticed it from Your error log as well.

Options +FollowSymLinks
RewriteEngine On
#all traffic to subdirectory, no user notification
RewriteCond ${REQUEST_URI} !^cms/
RewriteRule (.*) cms/$1 [L]

Open in new window

0
polaatxAuthor Commented:
right. I corrected the spelling two posts ago. See above. The error msg is what I am getting AFTER correcting the spelling.

My code right now is:

RewriteEngine On
#all traffic to subdirectory, no user notification
RewriteCond ${REQUEST_URI} !^cms/
RewriteRule (.*) cms/$1 [L]
0
ravenplCommented:
If You corrected the spelling, then why error log says "RweriteEngine" ? Or it shows something else now?
0
polaatxAuthor Commented:
That was the error BEFORE i corrected the spelling. As I wrote earlier, after correcting the spelling I could not see anymore errors in the errors log, even though the browser gets an error: http://www.projectharambee.org/

I just checked again, and there are no errors whatsoever listed in the hosting control panel. Here's the screen shot: http://picasaweb.google.com/saneplanet22/Misc/photo#5164345773493490962 

Does any of this make sense? It is getting weirder all the time.
0
polaatxAuthor Commented:
Hello, I got confirmation back from my host that mod-rewrite is enabled.
0
ravenplCommented:
Oh my, I'm little cold for last two days - I guess I have to blame that (I have to blame something :)
Changed one '$' to '%', give it a shot.

Options +FollowSymLinks
RewriteEngine On
#all traffic to subdirectory, no user notification
RewriteCond %{REQUEST_URI} !^cms/
RewriteRule (.*) cms/$1 [L]
0
polaatxAuthor Commented:
Hi there, no problem. I'm grateful you're still trying.

I tried it, still giving same error: http://projectharambee.org/

code now is:

Options +FollowSymLinks
RewriteEngine On
#all traffic to subdirectory, no user notification
RewriteCond %{REQUEST_URI} !^cms/
RewriteRule (.*) cms/$1 [L]

I tried taking out Options +FollowSymLinks
but still got the error.
0
polaatxAuthor Commented:
Any more ideas?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Apache Web Server

From novice to tech pro — start learning today.