| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| NamePros Regular | Hide query strings? [.htaccess or what?] OK... my dad uses FrontPage to create html pages So previously to make a page there would be a php page called whatever.php and a html body called whateverbody.html and the php would simple 'include' the body as well as head.php and foot.php. This system worked but took time, so now I made dynamic urls so www.domain.com/page.php?content=whatever ^that would load whateverbody.php with the head and body The problem is this is not very memorable and the php files have got a lot of backlinks so it there a way of masking/redirecting any php page that is typed like pageone.php (not actually a physical file) and get it to redirect / mask to www.domain.com/page.php?content=pageone there will need to be some exeptions and there are some static urls that exist and with this rule they would not be able to be reached ( i think)Thanks guys, Mutasim EDIT: a mate of mine suggests something called mod_rewrite :S
__________________ [ Facebook Applications | Buy, Sell & Discuss @ fbdn.org ] Last edited by Mutasim; 03-04-2007 at 09:44 AM. |
| |
| | #3 (permalink) |
| NamePros Regular | ok.... erm.. that doesn't seem to work :S http://www.antibodypatterns.com/page...nt=amphiphysin http://www.antibodypatterns.com/amphiphysin.php <-- doesn't work... help :P (btw: i did change whatever to page.php)
__________________ [ Facebook Applications | Buy, Sell & Discuss @ fbdn.org ] |
| |
| | #5 (permalink) |
| NamePros Regular | hey please try now...
__________________ [ Facebook Applications | Buy, Sell & Discuss @ fbdn.org ] |
| |
| | #7 (permalink) | |
| NamePros Regular | Quote:
) still doesn't workjust to clear things up... i need http://www.antibodypatterns.com/amphiphysin.php to mask for http://www.antibodypatterns.com/page...nt=amphiphysin using htaccess
__________________ [ Facebook Applications | Buy, Sell & Discuss @ fbdn.org ] | |
| |
| | #9 (permalink) |
| NamePros Regular | lfhost your code is bring content as 'page' but its closest so far :P so it is including pagebody.php
__________________ [ Facebook Applications | Buy, Sell & Discuss @ fbdn.org ] |
| |
| | #10 (permalink) |
| NamePros Member | before you even try mod rewrite, try and fix your coding http://www.antibodypatterns.com/page...nt=amphiphysin shows PHP Code: |
| |
| | #11 (permalink) |
| NamePros Regular | that is something yo do with your htaccess... when i remove it it all goes back to square 1
__________________ [ Facebook Applications | Buy, Sell & Discuss @ fbdn.org ] |
| |
| | #12 (permalink) |
| Senior Member | You should stop the errors from displaying. Also in your code have you stopped someone choosing what page they visit? ie do you sanitize the $content variable? If you do not using that method to choose the html output could cause 'other' output of my choosing to be displayed with a little trial and error, this includes things like config files, password files etc. |
| |
| | #14 (permalink) |
| NamePros Regular | the include is it the same directory
__________________ [ Facebook Applications | Buy, Sell & Discuss @ fbdn.org ] |
| |
| | #15 (permalink) |
| NamePros Regular | thanks anyway guys.... i got the answer off DigitalPoint
__________________ [ Facebook Applications | Buy, Sell & Discuss @ fbdn.org ] |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |