Solved

htaccess url rewriting problem

Posted on 2006-07-21
2
197 Views
Last Modified: 2010-03-04
My customer is using MAMBO
Can anyone figure out why the indicated line does not work?
It seems to work when I remove the ReWriteCond and ReWriteRule.

Can you suggest a solution so that all these lines work together?

Here is the htaccess file:
----------------------------
<IfModule mod_rewrite.c>
 RewriteEngine On
 RewriteBase   /

 # This line is not working....it says FILE NOT FOUND...any ideas?
 RewriteRule ^hickory-creek.html?$ /index.php?property_id=17 [L]

 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteRule ^(.*) index.php
</IfModule>
----------------------------
0
Comment
Question by:dasher3000
2 Comments
 
LVL 16

Accepted Solution

by:
xDamox earned 500 total points
ID: 17162958
Hi,

Comment out the RewriteCond and bottom RewriteRule and just try this:

RewriteRule ^hickory-creek.html$ index.php?property_id=17 [L]



0
 

Author Comment

by:dasher3000
ID: 17184459
hi, thanks for the suggestion. it did not work.
we resolved this by creating seperate php pages for each property_id and just having a php include as the contents of the file.

<?php include("index.php?property_id=17"); ?>

we then added a field in the property database that is called "property_detail_page" that contains the name of the newly created php file that contains the correct include.

so when users search the properties database, that page is output into the results.

I know this sounds like a lot of extra work, but we are hoping that this will increase our potential for search engine placement, since each file will be named with a few important key words related to that property.

we are also including in the database some fields for page title and keywords so that the meta information will be unique for each property as well.

thanks again,
dasher
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting http://domain.com (http://domain.com) to http…
Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now