close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Url Displaying Wrong Content?

Thread began 7/17/2013 2:19 pm by peterm.bruce341471 | Last modified 8/06/2013 4:46 pm by peterm.bruce341471 | 411 views | 6 replies


Good Answer

Originally Said By: Jason Byrnes
  you have conflicting rules

this rule:
RewriteRule ink$ products_results.php?Search=1&ProductCategoryID[]=2

is overwriting this one:
RewriteRule fluorescent_ink$ products_detail.php?ProductID=118

because they both end with ink

mod rewrite is not my specialty, so i am not entirely sure of the exact syntax, but I believe it should use:
RewriteRule ^ink$ products_results.php?Search=1&ProductCategoryID[]=2
RewriteRule ^fluorescent_ink$ products_detail.php?ProductID=118

to anchor the expression to the start of the string.  

Good answer Jason. I changed the re-writes around so they have different endings and it fixed it! I never knew this was an issue, not come across it before in rewrites.

I'd like to re-write all the urls in the store but the product list pages are tricky because all the product listing are generated from the database. Is there an easy way around this? I can only think of two options, strip the code and manually list the products (drag and defeats the point of the store) or add a column to the database and enter simple urls then change the reference in dreamweaver to point to the new column.

Have I missed a trick? Is there a better way?

Thanks Jason.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...