zyhit007 Posted December 9, 2007 Posted December 9, 2007 I brought a host space from hostmonster.com and install an oscommerce website using the main domain. I am also using the SEO-G contribution. I make a new site which is a totally html one and has nothing to do with php. As is know to all, the html website works well with the php host space. But this one doesn't. I asked help from the support of hostmonster.com and they tell me that the .htaccess is what the problem is. If I changed the .htaccess file, detailedly, delete “RewriteRule ^(.*).html$ root.php?$1.html&%{QUERY_STRING}”, it will be ok. Yes, this is useful and the html site works. but the main domain, the oscommerce one, does not work in this condition. Can you tell me how to change the .htacess file or make some changes to the html site? I am sorry for my broken English. The following is the .htaccess code: # $Id: $ # # This is used with Apache WebServers # # For this to work, you must include the parameter 'Options' to # the AllowOverride configuration # # Example: # # <Directory "/usr/local/apache/htdocs"> # AllowOverride Options # </Directory> # # 'All' with also work. (This configuration is in the # apache/conf/httpd.conf file) # The following makes adjustments to the SSL protocol for Internet # Explorer browsers #<IfModule mod_setenvif.c> # <IfDefine SSL> # SetEnvIf User-Agent ".*MSIE.*" \ # nokeepalive ssl-unclean-shutdown \ # downgrade-1.0 force-response-1.0 # </IfDefine> #</IfModule> # If Search Engine Friendly URLs do not work, try enabling the # following Apache configuration parameter # AcceptPathInfo On # Fix certain PHP values # (commented out by default to prevent errors occuring on certain # servers) # php_value session.use_trans_sid 0 # php_value register_globals 1 #-MS- SEO-G Added Options +FollowSymLinks RewriteEngine On # Next line must be changed to match your osCommerce folder - the relative path RewriteBase /catalog/ RewriteRule ^(.*).html$ root.php?$1.html&%{QUERY_STRING} #-MS- SEO-G Added EOM
Nick Weisser Posted December 9, 2007 Posted December 9, 2007 Have you read the comments in the htaccess file? Particularly the comment before the RewriteBase directive. Do you get any error messages in the browser or in the apache error log?
zyhit007 Posted December 9, 2007 Author Posted December 9, 2007 Have you read the comments in the htaccess file? Particularly the comment before the RewriteBase directive. Do you get any error messages in the browser or in the apache error log? The error messages in the browser is as following: The requested URL /root.php was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. thanks
Nick Weisser Posted December 9, 2007 Posted December 9, 2007 This means that your RewriteBase directive has the wrong path. If your shop is installed in the web root, this has to be simply /
zyhit007 Posted December 11, 2007 Author Posted December 11, 2007 Problem slaved, thank you very much! This is the success site www.ceruleangallery.com , thanks! sorry for my spoken english!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.