Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

htaccess url rewriting problem

Posted on 2006-07-21
2
Medium Priority
?
210 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 2000 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses

782 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