Web Hosting Forum | Lunarpages
News: July 14, 2008 - New Contest! - Submit Your WordPress Theme Designs, Win BIG!
June 30, 2008 - Submit Your Site for the July 08 Site of the Month Award!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
July 25, 2008, 11:34:00 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: HTACCESS ASSISTANCE  (Read 1751 times)
ddi2006abc
Newbie
*
Offline Offline

Posts: 1


« on: August 28, 2007, 03:17:54 PM »

I am having troubles getting my new e-commerce site working with my .htaccess file.
My developer has this version of the file running on all other e-commerce sites with no issues, but here with my LunarPages(LP) hosting account it is not re-writing the urls.

I have confirmed with LP support that Apache is on and the mod re-write is on as well, which are the 2 requirements of the htaccess updates. If anyone can recommend how I can change this to work correctly to generate search engine friendly urls that would be much appreciated.

Thanks.
If you would like the link to my site, please let me know and I can give specifically to you to view. The cart software is similar to xcart, litecommerce,zen cart cscart and such as far as the end results, where the pages are always mysite.com/index.php?target=information-to-follow-here, and I want to convert it to: mysite.com/sef-url.html

Here are the contents of the .htaccess file I am using/was given:
DirectoryIndex index.html index.php

<IfModule mod_rewrite.c>
RewriteEngine on

RewriteBase /
RewriteRule ^([^/]*/)?[^/]+p[-_]?([0-9]+)\.html$ $1index.php?target=products&product_id=$2   [L]
RewriteRule ^([^/]*/)?[^/]+c[-_]?([0-9]+)([-_]sort[-_]([a-z0-9_]+)[-_]order[-_]([a-z0-9_]+))?([-_]page-([a-z0-9_]+))?\.html$ $1index.php?target=categories&category_id=$2&sort_by=$4&sort_order=$5&page=$7   [L]
RewriteRule ^([^/]*/)?[^/]+a[-_]?([0-9]+)\.html$ $1index.php?target=pages&page_inner_id=$2   [L]
RewriteRule ^([^/]*/)?[^/]+t[-_]?([0-9]+)\.html$ $1index.php?target=topics&topic_id=$2   [L]
RewriteRule ^([^/]*/)?[^/]+m[-_]?([0-9]+)([-_]sort[-_]([a-z0-9_]+)[-_]order[-_]([a-z0-9_]+))?([-_]page-([a-z0-9_]+))?\.html$ $1index.php?target=manufacturers&manufacturer_id=$2&sort_by=$4&sort_order=$5&page=$7   [L]
RewriteRule ^([^/]*/)?form[-_]?([a-z0-9_]+)[-_]?(sent)?\.html$ $1index.php?target=forms&name=$2&mode=$3   [L]
RewriteRule ^([^/]*/)?manufacturers\.html$ $1index.php?target=manufacturers   [L]
RewriteRule ^([^/]*/)?catalog\.html$ $1index.php?mode=catalog   [L]
RewriteRule ^([^/]*/)?index\.html$ $1index.php   [L]

</IfModule>
Logged
MrPhil
Quantum Encyclopedia Writer
*****
Offline Offline

Posts: 3108



« Reply #1 on: September 03, 2007, 08:22:33 PM »

Get rid of the <IfModule> tags. They're not needed and may be messing you up.

The DirectoryIndex line seems redundant. The default DirectoryIndex at LP is index.html index.htm index.php.

The RewriteRules look more or less OK. I'm a bit concerned that "$1index" might not be recognized as two tokens ($1 + index), but if it works on other systems, give it a try.
Logged

Inque187
Anti-Cheat & Beta Team
Spacescooter Operator
*****
Offline Offline

Posts: 38


Sic Vis Pacem, Para Bellum!


WWW
« Reply #2 on: October 24, 2007, 06:27:48 PM »

This might help: http://www.lunarforums.com/lunarpages_web_hosting_email_pc_security/htaccess_everything_you_need_to_know-t43944.0.html
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM