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!
Home
Help
Search
Calendar
Login
Register
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
July 25, 2008, 09:14:32 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Web Hosting Forum | Lunarpages
>
Lunarpages Web Hosting - Advanced Assistance
>
Lunarpages - Search Engine Optimization
>
HTACCESS ASSISTANCE
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: HTACCESS ASSISTANCE (Read 1750 times)
ddi2006abc
Newbie
Offline
Posts: 1
HTACCESS ASSISTANCE
«
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
Posts: 3106
Re: HTACCESS ASSISTANCE
«
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
RewriteRule
s 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
Visit My Site
E-mail Me
Inque187
Anti-Cheat & Beta Team
Spacescooter Operator
Offline
Posts: 38
Sic Vis Pacem, Para Bellum!
Re: HTACCESS ASSISTANCE
«
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Lunarpages Web Hosting - Information & Opportunities
-----------------------------
=> Lunarpages Web Hosting - Announcements
=> Lunarpages Web Hosting - Hosting Plans & Site Information
=> Job Opportunities at Lunarpages Web Hosting
=> Lunarpages Web Hosting - Network Information
=> Lunarpages Web Hosting - Server Information
-----------------------------
Lunarpages Web Hosting - Before Signing Up
-----------------------------
=> Lunarpages Web Hosting Plans - Pre-Sales Questions
-----------------------------
Lunarpages Web Hosting - Online Help Desk
-----------------------------
=> Lunarpages - Webhosting Help
=> Lunarpages - Beginner Assistance
=> Lunarpages - How to's
=> E-mail with your Lunarpages Hosting Plan
=> Lunarpages - CPanel Help
=> Lunarpages - Ecommerce Hosting
=> Lunarpages - FrontPage
=> Lunarpages - DreamWeaver
=> Lunarpages - Message Boards-Forums-Fantastico Scripts
===> Lunarpages - Joomla / Mambo
-----------------------------
Lunarpages Web Hosting - Advanced Assistance
-----------------------------
=> Web Management
=> Lunarpages - Webdesign and HTML
=> Lunarpages - Search Engine Optimization
=> Lunarpages - Animation & Flash
=> Lunarpages - Graphics
=> Lunarpages - Web Hosting, Email & PC Security
=> Lunarpages - Dedicated Web Hosting
=> Lunarpages - Reseller Web Hosting
=> Lunarpages - VPS Hosting
=> Lunarpages - SharePoint Services (Beta)
===> Lunarpages - cPanel & WHM
===> Lunarpages - General
===> Lunarpages - Plesk
===> Lunarpages - Security
===> Lunarpages - Tutorials
===> Lunarpages - Webmin
===> Lunarpages - WHM
-----------------------------
Lunarpages Web Hosting - Coding
-----------------------------
=> Lunarpages - ASP
=> Lunarpages - C++ / PERL / CGI
=> Lunarpages - PHP & MySQL
=> Lunarpages - Java Applets & Javascript
=> Lunarpages - JSP & Servlets
=> Lunarpages - Ruby Hosting
=> Lunarpages - Windows Development & Hosting
-----------------------------
Lunarpages Web Hosting - Entertainment
-----------------------------
=> Lunarpages - Chat & Stuff!
=> Lunarpages - Contests
=> Fun at Lunarpages!!
=> Lunarpages - Online Gaming
-----------------------------
Lunarpages Web Hosting - General
-----------------------------
=> Social Networking
=> Lunarpages Free Web Hosting - Education Program
=> Lunarpages - Affiliate Program
=> Introduce Yourself to the Lunarpages Forum Community!
=> Your Websites & Creations at Lunarpages!
=> Lunarpages Website of the Month
=> Lunarpages - Service and Trade
Loading...