close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

URL Rewrites

Thread began 3/15/2022 8:16 pm by jo271221 | Last modified 10/17/2022 9:46 am by Ray Borduin | 369 views | 5 replies |

jo271221

URL Rewrites

In our private session we worked out some URL rewrites which work with directory.99 (with 99 being the id)
I am wondering if we can use directory/99

https://mysite.com/directory/page.php?horseid=11413
RewriteRule ^timeline/[a-zA-Z0-9_.-]+\.([0-9]+)$ page.php?id=$1 [NC,L]

Actual urls in PM for my benefit

Sign in to reply to this post

Ray BorduinWebAssist

You can, but when you use a slash in the url rewrite you may have to add a <base> tag to the html headers on the pages to identify the correct directory for the page so the css and images display properly if you use page relative urls.

The update to the htaccess would be:

RewriteRule ^timeline/[a-zA-Z0-9_.-]+\/([0-9]+)$ horse-profile-timeline.php?horseid=$1 [NC,L]

Sign in to reply to this post
Did this help? Tips are appreciated...

jo271221

URL Rewrite with to id's

I have a more complicated url rewrite I need assistance with.
Actual URL in PM
https://mysite.com/mypage/xyz.php?recordid=18376&memberidid=19057

Sign in to reply to this post

Ray BorduinWebAssist

You probably want something like:

RewriteRule ^horse/([^/]*)/(.*)$ hotpage/horse-profile.php?horseid=$1&id=$2 [QSA,L,NC]

Then your url would be: /horse/18376/9057

Sign in to reply to this post
Did this help? Tips are appreciated...

jo271221

Thank you.

I must be missing something. It is not working. I get a page not found. I have attached pages.I believe you also have a connection to this site.

Sign in to reply to this post

Ray BorduinWebAssist

It looks like that should be:


RewriteRule ^details/horse/[a-zA-Z0-9_.-]+\.([0-9]+)$ details/horse-profile.php?horseid=$1 [QSA,NC,L]

Sign in to reply to this post
Did this help? Tips are appreciated...

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