close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

HTACCESS Friendly URL doesnt work

Thread began 8/14/2014 11:19 pm by Christopher West | Last modified 8/19/2014 7:09 am by Christopher West | 2528 views | 18 replies

Jamie

Hey Christopher

Not sure about the path that you have suggested (its something I have in my 'to do' list to talk to Ray about' but I use this the following structure on all my dynamic pages - couple of examples: check out the news article links on http://www.ybg.org.uk/news.php or the member links on http://blandfordbusiness.co.uk/members.php

This is how I put it together (and using your suggested domain):

Addition of <base href="http://www.dinkyfingerprintjewellery.co.uk/" > to the target page

Recordset structure (on target page category.php):

(You need to change $RSName, $DBConnection, table_name, Permalink and KeyColumnID to your own references)

<?php
$RSName = new WA_MySQLi_RS("RSName ",$DBConnection,1);
$RSName ->setQuery("SELECT * FROM table_name WHERE KeyColumnID = ? OR Permalink = ?");
$RSName ->bindParam("i", "".(isset($_GET['id'])?$_GET['id']:"") ."", "-1"); //paramOffersID
$RSName ->bindParam("s", "".(isset($_GET['perm'])?$_GET['perm']:"") ."", "-1"); //paramPermalink
$RSName ->execute();
?>



Where the difference lies in what you have put, is the addition of a faux 'folder' in the URL structure

Where you have put:

http://www.dinkyfingerprintjewellery.co.uk/Cufflinks/


I would add a faux folder like this:

http://www.dinkyfingerprintjewellery.co.uk/folder-name/Cufflinks/ (note the addition of /folder-name/ to the structure)


Your raw URL is http://www.dinkyfingerprintjewellery.co.uk/category.php?Categories=Cufflinks

so the htaccess that pulls it all together is

RewriteEngine on

RewriteRule ^folder-name/(.*)$ category.php?perm=$1 [NC,L,QSA,T=application/x-httpd-php]


and all you need to do to link to that page is use the structure like ttp://www.dinkyfingerprintjewellery.co.uk/folder-name/Cufflinks/

Hope this helps?

All the best

Jamie

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

Content

rating

Layout

rating

Ease of use

rating

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