Rewriting .htaccess from a php file or form

Reply

Join Date: Oct 2008
Posts: 89
Reputation: wickedsunny is an unknown quantity at this point 
Solved Threads: 4
wickedsunny wickedsunny is offline Offline
Junior Poster in Training

Re: Rewriting .htaccess from a php file or form

 
0
  #11
Jan 17th, 2009
hiiz i think u guyz are not following what im trying to say. im using dolphin cms. i made a form which i posted above which inserts a new page entry in the database. and to view that page we automatically get this kind of url

www.blastingart.com/viewPage.php?ID=Page Name

and to make it search engine friendly i have to rewrite it in the .htaccess so it looks like this www.blastingart.com/page Name.html

ok now what i want is to make a system that when i generate a new page through that form it will automatically add the rewrite entry in the .ht access file . is it possible? if yes please help !!!

thx in advance
regards
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 596
Reputation: buddylee17 has a spectacular aura about buddylee17 has a spectacular aura about 
Solved Threads: 125
buddylee17's Avatar
buddylee17 buddylee17 is offline Offline
Posting Pro

Re: Rewriting .htaccess from a php file or form

 
0
  #12
Jan 17th, 2009
Yes the rewrite rule I left earlier will make the id value appear to be the html file. So if you typed
www.blastingart.com/New Features.html into the url, it would be parsed by the server as www.blastingart.com/viewPage.php?ID=New Features
Lost time is never found again.
- Benjamin Franklin
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 1,326
Reputation: almostbob has a spectacular aura about almostbob has a spectacular aura about 
Solved Threads: 162
almostbob's Avatar
almostbob almostbob is offline Offline
Nearly a Posting Virtuoso

Re: Rewriting .htaccess from a php file or form

 
0
  #13
Jan 17th, 2009
Originally Posted by wickedsunny View Post
hiiz i think u guyz are not following what im trying to say. im using dolphin cms. i made a form which i posted above which inserts a new page entry in the database. and to view that page we automatically get this kind of url

www.blastingart.com/viewPage.php?ID=Page Name

and to make it search engine friendly i have to rewrite it in the .htaccess so it looks like this www.blastingart.com/page Name.html

ok now what i want is to make a system that when i generate a new page through that form it will automatically add the rewrite entry in the .ht access file . is it possible? if yes please help !!!

thx in advance
regards
Originally Posted by buddylee17 View Post
Yes the rewrite rule I left earlier will make the id value appear to be the html file. So if you typed
www.blastingart.com/New Features.html into the url, it would be parsed by the server as www.blastingart.com/viewPage.php?ID=New Features
Thats what everyone is trying to explain
1 system for creating filenames
1 rule to translate the url between ?=something
and domain/something.html

a rule for every file does not work
Failure is not an option It's included free
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it

Please mark solved problems, solved
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 89
Reputation: wickedsunny is an unknown quantity at this point 
Solved Threads: 4
wickedsunny wickedsunny is offline Offline
Junior Poster in Training

Re: Rewriting .htaccess from a php file or form

 
0
  #14
Jan 18th, 2009
that is wht im saying i dono hwo to do it. can anyone help me out ?
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 1,326
Reputation: almostbob has a spectacular aura about almostbob has a spectacular aura about 
Solved Threads: 162
almostbob's Avatar
almostbob almostbob is offline Offline
Nearly a Posting Virtuoso

Re: Rewriting .htaccess from a php file or form

 
0
  #15
Jan 18th, 2009
Every post, almost, has explained what to do
  • Establish a convention for naming the files from your cms
  • establish a rewrite rule that matches the naming system used
done
Nobody can do it for you, and have tried to explain the process
dont know the names used already
but the thing to do is Stop
until you read the manual and understand it on rewrite, everything you do will make it harder to undo.
Failure is not an option It's included free
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it

Please mark solved problems, solved
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 89
Reputation: wickedsunny is an unknown quantity at this point 
Solved Threads: 4
wickedsunny wickedsunny is offline Offline
Junior Poster in Training

Re: Rewriting .htaccess from a php file or form

 
0
  #16
Jan 19th, 2009
thank u
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the PHP Forum
Thread Tools Search this Thread



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

©2003 - 2009 DaniWeb® LLC