| | |
create dynamic link without creating new php page??
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: Apr 2009
Posts: 254
Reputation:
Solved Threads: 37
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.
•
•
Join Date: Apr 2008
Posts: 293
Reputation:
Solved Threads: 11
hi,
In htaccess
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
plz tell me what to do??
In htaccess
PHP Syntax (Toggle Plain Text)
RewriteEngine on RewriteBase /project_test/ RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f 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
PHP Syntax (Toggle Plain Text)
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.
•
•
•
•
hi,
In htaccess
PHP Syntax (Toggle Plain Text)
RewriteEngine on RewriteBase /project_test/ RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f 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
PHP Syntax (Toggle Plain Text)
RewriteRule ^projects/(.*)/$ project_detail.php?pname=$1 [L]
plz tell me what to do??
PHP Syntax (Toggle Plain Text)
RewriteEngine on RewriteRule ^projects/(.*)/$ project_detail.php?pname=$1
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
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
•
•
Join Date: Apr 2009
Posts: 254
Reputation:
Solved Threads: 37
•
•
•
•
hi,
In htaccess
PHP Syntax (Toggle Plain Text)
RewriteEngine on RewriteBase /project_test/ RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f 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
PHP Syntax (Toggle Plain Text)
RewriteRule ^projects/(.*)/$ project_detail.php?pname=$1 [L]
plz tell me what to do??
look, when we are in root directory means www the rewrite base will be as
PHP Syntax (Toggle Plain Text)
RewriteBase /
PHP Syntax (Toggle Plain Text)
RewriteBase /demo/
PHP Syntax (Toggle Plain Text)
RewriteBase /demo/abc/
now try it
PHP Syntax (Toggle Plain Text)
RewriteEngine on RewriteBase /demo/abc/ RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^projects/(.*)/$ project_detail.php?pname=$1 [L]
Last edited by BzzBee; Apr 17th, 2009 at 7:06 am.
RewriteEngine on
RewriteRule ^projects/(.*)/$ project_detail.php?pname=$1
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.
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.
![]() |
Similar Threads
- The most famous CSS web sites galleries in the world (HTML and CSS)
- JSP database connectivity according to Model View Controller (MVC) Model 2 (JSP)
- Help with automatic update problem and more (Viruses, Spyware and other Nasties)
- creating a sticky form compatible with onChange (PHP)
- Apache (Linux Servers and Apache)
- dynamically update pages (HTML and CSS)
Other Threads in the PHP Forum
- Previous Thread: Template Engine Problem
- Next Thread: Sum all the values in one colum of a html table?
| Thread Tools | Search this Thread |
apache api array beginner binary body broken buttons cakephp checkbox class cms code cron curl database date date/time display dynamic ebooks echo email error file files folder form forms function functions google href htaccess html image include insert ip javascript joomla limit link list login mail mediawiki menu mlm msqli_multi_query multiple mycodeisbad mysql number oop parameter paypal pdf php phpincludeissue phpmyadmin problem query radio random recourse recursion regex remote script search seo server sessions sms source sp space speed sql static subdomain syntax system table tag tutorial update upload url validator variable vbulletin video web webdesign white wordpress xml youtube






