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

rating

URL rewriting

Thread began 11/29/2012 5:18 am by mrs | Last modified 12/05/2012 10:39 am by mrs | 873 views | 4 replies |

mrs

URL rewriting

Hi all, I know this is cheeky, but I am struggling to get to grips with URL rewriting known as mod_rewrite for the .htaccess file on apache.

Has anybody here successfully managed to rewrite their URLs for the powerstore?

If so, can I be rude and ask if you could post the code for it here as I am unsure as to what I am doing wrong!

I was hoping to simply have a URL that looks a bit like this:

123456

123456 being the actual unique record ID of the database record.

Thanks in advance.

Sign in to reply to this post

Jason ByrnesWebAssist

there are many mod rewrite generators available on line like this one that may help:
mod_rewrite-rewriterule-generator.shtml

there are also many tutorials out there like this one that may help:
a-deeper-look-at-mod_rewrite-for-apache/

Or there is the mod rewrite forum:
forum.modrewrite.com/

they may be able to help with specifics there

Sign in to reply to this post

mrs

Hi Jason, just a few questions about URL rewriting...

I seem to find this as one of my nemeses!

If I do manage to apply URL rewriting, do I have to change the href code to point to the 'rewritten' URL like website.com/dog-chews, or do I point to the standard link such as website.com/product-detail.php?id=111

I can get URL rewriting to half work, but only on html files. If I use php files, the page fails. Also, when I tested an html file, I could use website/dog-chews and website/dog-chews.html in the address bar with some success, so I am left a little bewildered as to what I am meant to use as a URL address, and I have read so much info, but nothing clarifies this.

Thanks for your help so far.

Sign in to reply to this post

Jason ByrnesWebAssist

The links on your page will stay the same:
website.com/product-detail.php?id=111

the point of mod_rewrite is to translate that link to a more friendly URL.


Support for mod_rewrite is beyond what we can offer in this forum. If you have specific questions, the mod_rewrite forum i linked to bellow would be better suited to addressing your questions.

Sign in to reply to this post

mrs

Thank you Jason.

I do know you don't support it here, it seemed that you knew something about it and I thought I'd ask you about the link. It's just been painful to find some rudimentary answers... out of all of the blogs and articles I've read, not one clearly explains what I am meant to be using within the href link itself, so I have been going round trying out different links with different rewrite rules, seeming to get somewhere, then finding it doesn't entirely work as expected.

So, links are as I thought they should be, so you have been of some help simply by clarifying that.

Thanks.

Sign in to reply to this post

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