close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

.htaccess page

Thread began 3/13/2010 3:07 pm by Gizza372666 | Last modified 3/17/2010 5:21 pm by Gizza372666 | 1270 views | 4 replies

Gizza372666

Originally Said By: Jimmy Wu
  Here is a guide on how to create the .htaccess file to rewrite the url:
mod_rewrite

If you run into any issues, please let me know and I will assist as best I can.  



Hi Eric,
Sorry I can understand it.
Can you please give me a specific example for the following case (this hopefully will enable me to understand it).
Here is what I have:
On the User_profile page I have created a link so the user will be directed on a page that he/she will be able to upload a picture. (<a href="add_image.php?UserID=<?php echo $row_WAATKusers['UserID'];?>" target="_blank">)
The problem is that they will be able to see their ID e.g.
UpdateBanner.php?UserID=94
Which means that if you type 95 it will go to the UserID=95 and they will be able to change someone else’s picture.
if i could add the right command on the .htaccess page to remove this (?UserID=94), they will not be able to do this.
Can you please help me write the .htaccess page?
This is what I have tried but it gives me error 500
RewriteEngine on
RewriteCond %{QUERY_STRING} ^
RewriteRule ^(.*)$ $1 [L,R=301]
RewriteCond %{THE_REQUEST} ^\?UserID=(.*)$ HTTP [NC]
RewriteRule ^$UpdateBanner.php%{REQUEST_URI} [R=301,L]
HELP!!!

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