943,755 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 2821
  • PHP RSS
You are currently viewing page 2 of this multi-page discussion thread; Jump to the first page
Jan 17th, 2009
0

Re: Rewriting .htaccess from a php file or form

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
Reputation Points: 10
Solved Threads: 5
Junior Poster in Training
wickedsunny is offline Offline
96 posts
since Oct 2008
Jan 17th, 2009
0

Re: Rewriting .htaccess from a php file or form

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
Reputation Points: 232
Solved Threads: 137
Practically a Master Poster
buddylee17 is offline Offline
665 posts
since Nov 2007
Jan 17th, 2009
0

Re: Rewriting .htaccess from a php file or form

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
Click to Expand / Collapse  Quote originally posted by buddylee17 ...
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
Reputation Points: 562
Solved Threads: 368
Posting Maven
almostbob is offline Offline
2,970 posts
since Jan 2009
Jan 18th, 2009
0

Re: Rewriting .htaccess from a php file or form

that is wht im saying i dono hwo to do it. can anyone help me out ?
Reputation Points: 10
Solved Threads: 5
Junior Poster in Training
wickedsunny is offline Offline
96 posts
since Oct 2008
Jan 18th, 2009
0

Re: Rewriting .htaccess from a php file or form

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.
Reputation Points: 562
Solved Threads: 368
Posting Maven
almostbob is offline Offline
2,970 posts
since Jan 2009
Jan 19th, 2009
0

Re: Rewriting .htaccess from a php file or form

thank u
Reputation Points: 10
Solved Threads: 5
Junior Poster in Training
wickedsunny is offline Offline
96 posts
since Oct 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Simple Value Question
Next Thread in PHP Forum Timeline: Send SMS using PHP : Problem





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC