|
|
|
|
![]() ![]() |
Mar 11 2007, 03:50 PM
Post
#1
|
|
|
Newbie [Level 2] ![]() ![]() Group: Members Posts: 31 Joined: 9-August 06 Member No.: 28,049 |
Can someone give me idea what is term 'permalink' in blogs using php.. and for example if i have a post like, myblog.php?post_id=xxx&cat_id=zzz how i can make like permalink of this post ??
|
|
|
|
Mar 11 2007, 09:36 PM
Post
#2
|
|
|
Newbie [Level 1] ![]() Group: Members Posts: 12 Joined: 8-March 07 From: Gtown, Wisconsin Member No.: 39,728 |
according to wordpress.org,
QUOTE Permalinks are the permanent URLs to your individual weblog posts, as well as categories and other lists of weblog postings. A permalink is what another weblogger will use to refer to your article (or section), or how you might send a link to your story in an e-mail message. Especially when they are used to link to individual postings, once a story is posted, the URL to it should be permanent, and never change. Hence the "perma" in the name. They're generally used to make urls simpler to remember.if mod_rewrite is available, you could set up an .htaccess file that looks like this: CODE <IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^index/([0-9]+)/([0-9]+)/?$ /index.php?id=$1&cat_id=$2 [L] </IfModule> This would make it so that the link site.com/index/11/223/ would actually be site.com/index.php?id=11&cat_id=223 EDIT: here are a couple of resources you could look at for mod_rewrite: http://www.workingwith.me.uk/articles/scripting/mod_rewrite http://www.sitepoint.com/article/guide-url-rewriting This post has been edited by andybebad: Mar 11 2007, 09:41 PM |
|
|
|
![]() ![]() |
Similar Topics
| Topics | Topics | |
|---|---|---|
|
|
|
|
Lo-Fi Version | Time is now: 6th September 2008 - 06:27 PM |