close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

HTACCESS Friendly URL doesnt work

Thread began 8/15/2014 2:19 am by Christopher West | Last modified 8/19/2014 10:09 am by Christopher West | 1179 views | 18 replies

Christopher WestCommunity Expert

Hi Jamie, well it only seems to work if I use the htaccess code AND then change my PHP code
<a href="../category.php?Categories=<?php echo $row_Catg['CategoryLink']; ?>"><?php echo $row_Catg['CategoryName']; ?></a>
<a href="../<?php echo $row_Catg['CategoryLink']; ?>"><?php echo $row_Catg['CategoryName']; ?></a>

So removing ../category.php?Categories= from ALL my links on my website.

But surely that cant be right as what IF I had a website with 100's of pages that reference categories...that would mean i would then need to manually change ALL my links sitewide. plus I also have references to ../category.php?Categories=Some-Category-Name in my database to dynamically display additional content that relates to that particular page...this would then mean I would need to manually eidt my database records and removing all references to category.php?Categories=

So is this the only way to do it?

I assumned that if I have a website that was referencing links as ../category.php?Categories=<?php echo $row_Catg['CategoryLink']; ?> that HTACCESS would just convert that php into SEO friendly URLS. or have I completely got this logic wrong?

As mentioned it does work if I do also change my php links...but it means if i do the same for products eg

Options +FollowSymlinks
Options -Multiviews
RewriteRule ^([^/.]+)/?$ /category.php?Categories=$1 [NC]
RewriteRule ^([^/.]+)/?$ /product.php?Product=$1 [NC]

I get this error:

the error message is referencing this code on line 81 : mysql_data_seek($rsProducts,0);

I'm attaching both products.php and category.php files to show php code in context (as well as a header plugin that displays my menu links for categories).

I would be grateful if you or anyone could help me get the products links working the same method as the categories as I dont know how to fix the above php error message.

Kind regards


Attached Files

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...