Solved

htaccess url rewriting problem

Posted on 2006-07-21
2
205 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

821 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