create dynamic link without creating new php page??

Thread Solved

Join Date: Apr 2008
Posts: 293
Reputation: Aamit has a little shameless behaviour in the past 
Solved Threads: 11
Aamit Aamit is offline Offline
Posting Whiz in Training

Re: create dynamic link without creating new php page??

 
0
  #11
Apr 17th, 2009
Wait for my replay i am going through your code...
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 254
Reputation: BzzBee is an unknown quantity at this point 
Solved Threads: 37
BzzBee BzzBee is offline Offline
Posting Whiz in Training

Re: create dynamic link without creating new php page??

 
0
  #12
Apr 17th, 2009
ok m here but hurry up...
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 293
Reputation: Aamit has a little shameless behaviour in the past 
Solved Threads: 11
Aamit Aamit is offline Offline
Posting Whiz in Training

Re: create dynamic link without creating new php page??

 
0
  #13
Apr 17th, 2009
Thank You Thank You Thank You Thank You Thank You
Very Much...


You r rock star...

It perfectly work on localhost...

I integrating on live if i found any difficulty with htaccess i will tell you

Thanks for your help...god bless you
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 254
Reputation: BzzBee is an unknown quantity at this point 
Solved Threads: 37
BzzBee BzzBee is offline Offline
Posting Whiz in Training

Re: create dynamic link without creating new php page??

 
0
  #14
Apr 17th, 2009
no no its really ok. I always feel so happy when i be able to help others. please feel free to ask any question.

i will be happy if you will write your kind remarks in my reputation

Add to BzzBee's Reputation about my posts
Last edited by BzzBee; Apr 17th, 2009 at 3:08 am.
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 293
Reputation: Aamit has a little shameless behaviour in the past 
Solved Threads: 11
Aamit Aamit is offline Offline
Posting Whiz in Training

Re: create dynamic link without creating new php page??

 
0
  #15
Apr 17th, 2009
hi,
In htaccess
  1. RewriteEngine on
  2. RewriteBase /project_test/
  3.  
  4. RewriteCond %{REQUEST_FILENAME} !-d
  5. RewriteCond %{REQUEST_FILENAME} !-f
  6. RewriteRule ^projects/(.*)/$ project_detail.php?pname=$1 [L]


and my project_detail.php file at
http://localhost/demo/abc/index.php
http://localhost/demo/abc/project_detail.php
when click on link
http://localhost/demo/abc/projects/school-project/
IT gives page not found

I think some modification needed at this line
  1. RewriteRule ^projects/(.*)/$ project_detail.php?pname=$1 [L]

plz tell me what to do??
Last edited by Aamit; Apr 17th, 2009 at 3:11 am.
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 1,461
Reputation: cwarn23 has a spectacular aura about cwarn23 has a spectacular aura about cwarn23 has a spectacular aura about 
Solved Threads: 136
cwarn23's Avatar
cwarn23 cwarn23 is offline Offline
Nearly a Posting Virtuoso

Re: create dynamic link without creating new php page??

 
0
  #16
Apr 17th, 2009
Originally Posted by Aamit View Post
hi,
In htaccess
  1. RewriteEngine on
  2. RewriteBase /project_test/
  3.  
  4. RewriteCond %{REQUEST_FILENAME} !-d
  5. RewriteCond %{REQUEST_FILENAME} !-f
  6. RewriteRule ^projects/(.*)/$ project_detail.php?pname=$1 [L]


and my project_detail.php file at
http://localhost/demo/abc/index.php
http://localhost/demo/abc/project_detail.php
when click on link
http://localhost/demo/abc/projects/school-project/
IT gives page not found

I think some modification needed at this line
  1. RewriteRule ^projects/(.*)/$ project_detail.php?pname=$1 [L]

plz tell me what to do??
Try making the following your .htaccess file:
  1. RewriteEngine on
  2.  
  3. RewriteRule ^projects/(.*)/$ project_detail.php?pname=$1
Also make sure that mod_rewrite is enabled in the apachie configurations.
Try not to bump 10 year old threads as it can be really annoying.
Like php then read my website at http://syntax.cwarn23.net/
Star-Trek-Atlantis - now that's what I call a movie ^_^
My favourite PC. - MacGyver Fan
Bad english note: dis-iz-2b4u
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 254
Reputation: BzzBee is an unknown quantity at this point 
Solved Threads: 37
BzzBee BzzBee is offline Offline
Posting Whiz in Training

Re: create dynamic link without creating new php page??

 
0
  #17
Apr 17th, 2009
Originally Posted by Aamit View Post
hi,
In htaccess
  1. RewriteEngine on
  2. RewriteBase /project_test/
  3.  
  4. RewriteCond %{REQUEST_FILENAME} !-d
  5. RewriteCond %{REQUEST_FILENAME} !-f
  6. RewriteRule ^projects/(.*)/$ project_detail.php?pname=$1 [L]


and my project_detail.php file at
http://localhost/demo/abc/index.php
http://localhost/demo/abc/project_detail.php
when click on link
http://localhost/demo/abc/projects/school-project/
IT gives page not found

I think some modification needed at this line
  1. RewriteRule ^projects/(.*)/$ project_detail.php?pname=$1 [L]

plz tell me what to do??
hello amit

look, when we are in root directory means www the rewrite base will be as
  1. RewriteBase /
when you are in demo folder with in the root directory so the rewite base will be as

  1. RewriteBase /demo/
as same in your case it should be

  1. RewriteBase /demo/abc/

now try it

  1. RewriteEngine on
  2. RewriteBase /demo/abc/
  3.  
  4. RewriteCond %{REQUEST_FILENAME} !-d
  5. RewriteCond %{REQUEST_FILENAME} !-f
  6. RewriteRule ^projects/(.*)/$ project_detail.php?pname=$1 [L]
Last edited by BzzBee; Apr 17th, 2009 at 7:06 am.
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 3
Reputation: GameGape.com is an unknown quantity at this point 
Solved Threads: 1
GameGape.com's Avatar
GameGape.com GameGape.com is offline Offline
Newbie Poster

Re: create dynamic link without creating new php page??

 
0
  #18
Apr 18th, 2009
RewriteEngine on

RewriteRule ^projects/(.*)/$ project_detail.php?pname=$1
WWW.GAMEGAPE.COM
More games, more gapes

GameGape is the premier social gaming network where people can chat, make friends, write blogs, play games and save their high scores. With a showcase of hundreds of free online games, GameGape is regarded for its high-quality games suitable for the entire family.
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 254
Reputation: BzzBee is an unknown quantity at this point 
Solved Threads: 37
BzzBee BzzBee is offline Offline
Posting Whiz in Training

Re: create dynamic link without creating new php page??

 
1
  #19
Apr 20th, 2009
hello Amit,

Is you issue solved or not?
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC