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

Reply
  #1 (permalink)  
Old
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 www.essencz.com/read.php?id=89 (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

Thanks
Abhishek
Reply With Quote

Featured Marketplace Scripts (view more)

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

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

EDIT: Also your links should be http://www.site.com/read/The-Page-You-Want

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

Bookmarks

Tags
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 06:48 AM
100 ways to get more traffic jorokolarov The Lounge 12 12-06-07 08:20 PM
Require Forum website project code in php language suaveshiva PHP 4 04-30-07 04:21 PM
PHP multi-dimensional array sorting issue aqw PHP 2 06-25-05 12:09 AM


All times are GMT -5. The time now is 06:27 AM.
vBulletin® Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.