Current location: Hot Scripts Forums » Programming Languages » PHP » Looking for url rewrite php help for my website

Looking for url rewrite php help for my website

  #1 (permalink)  
New Member
Join Date: Nov 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Looking for url rewrite php help for my website

Any help in this matter will be highly appreciated.

I started an article directory kinda website. The articles stored in the database are fetched by a single read.php page.

Thus all the article webpages' url looked like (the id just changes)

However, I rewrite the urls and the current looking url is something similar to

Air Brake System of a Railway or Diesel Locomotive

but, as you can see the "read.php?url= still shows in the url which we are unable to remove.

Kindly Advise

Reply With Quote

Featured Marketplace Scripts (view more)

  #2 (permalink)  
Newbie Coder
Join Date: Jul 2010
Posts: 32
Thanks: 0
Thanked 3 Times in 3 Posts
This is actually done with htaccess.

RewriteEngine On
RewriteRule ^read/(.+)$ read.php?url=$1 [NC]

EDIT: Also your links should be

Last edited by Frement; 11-14-12 at 08:20 AM.
Reply With Quote


php code url, url rewrite problem

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP or PHP which is better? nepala The Lounge 9 07-14-10 05:48 AM
100 ways to get more traffic jorokolarov The Lounge 12 12-06-07 07:20 PM
Require Forum website project code in php language suaveshiva PHP 4 04-30-07 03:21 PM
PHP multi-dimensional array sorting issue aqw PHP 2 06-24-05 11:09 PM

All times are GMT -5. The time now is 02:48 PM.
vBulletin® Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.