Solved

htaccess url rewriting problem

Posted on 2006-07-21
2
207 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

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

Suggested Solutions

Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.
Suggested Courses

752 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