| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Tandiono.com Join Date: Jun 2005 Location: FuckingBusiness.net
Posts: 373
![]() | .htaccess Is there anyway that i could change a certain words on my site, example : "dick head" to "praise the mighty lord" by .htaccess ? so if any of "dick head" words were post it will be automatically change to "praise the mighty lord" To anyone please kindly assist me. Thanks in advance
__________________ Tandiono.com | Mikess.com | WebsiteForum.net | AudioForum.net | ToysForum.net | GadgetForum.net | ClickBankForum.net | ForumBoards.net | VerySoon.net | ClickBanks.net |
| |
| | #2 (permalink) |
| Buy my domains. Join Date: Feb 2006
Posts: 2,792
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Code: RewriteEngine on RewriteRule (.*)?dick(.*)?head(.*)? $1praise_the_mighty_lord$3 [R] |
| |
| | THREAD STARTER #3 (permalink) | ||||
| Tandiono.com Join Date: Jun 2005 Location: FuckingBusiness.net
Posts: 373
![]() |
????: NamePros.com http://www.namepros.com/programming/244812-htaccess.html Thanks for the reply ![]() well, just try it but not working. Is there any other way?
__________________ Tandiono.com | Mikess.com | WebsiteForum.net | AudioForum.net | ToysForum.net | GadgetForum.net | ClickBankForum.net | ForumBoards.net | VerySoon.net | ClickBanks.net | ||||
| |
| | #4 (permalink) |
| Senior Member Join Date: Aug 2003 Location: SW Ohio
Posts: 4,015
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | I don't think .htaccess can do it, however, I know some forum software has the ability to do this with postings. I had a forum member keep spam posting a website in every post and I set the forum up to replace his website name with "I'm a spammer". After I while, I think he got the message. You might do a search for a "search and replace" script and set it up as a cron job. http://www.hotscripts.com/Tools_and_...ace/index.html
__________________ AdoptableDomains.com ~~~~~Finding Good Homes for Good Names~~~~~ FuelPrices.mobi - Fish.us - ManhattanNewYork.net - Salesmen.info - SoundSystems.org Dickering.com - JobPlacement.biz - LotteryTickets.ws - Deleted.cc - Names.im - MP3.hn |
| |
| | THREAD STARTER #5 (permalink) | ||||
| Tandiono.com Join Date: Jun 2005 Location: FuckingBusiness.net
Posts: 373
![]() |
well, can't find any source which could perform this action on hotscripts.com .. it's actually for my blog site, which i need to force change a certain words looking if there are anyway which could force change words by .htaccess
__________________ Tandiono.com | Mikess.com | WebsiteForum.net | AudioForum.net | ToysForum.net | GadgetForum.net | ClickBankForum.net | ForumBoards.net | VerySoon.net | ClickBanks.net | ||||
| |
| | #6 (permalink) |
| Buy my domains. Join Date: Feb 2006
Posts: 2,792
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Code: RewriteEngine on RewriteRule (.*)?dick(.*)?head(.*)? $1praise_the_mighty_lord$3 [NC,R] If it goes to some crazy URL when it does it, show me the URL it goes to. |
| |
| | THREAD STARTER #7 (permalink) | ||||
| Tandiono.com Join Date: Jun 2005 Location: FuckingBusiness.net
Posts: 373
![]() |
just try it, but still not working either. Im trying it on the plain .htm file
__________________ Tandiono.com | Mikess.com | WebsiteForum.net | AudioForum.net | ToysForum.net | GadgetForum.net | ClickBankForum.net | ForumBoards.net | VerySoon.net | ClickBanks.net | ||||
| |
| | THREAD STARTER #9 (permalink) | ||||
| Tandiono.com Join Date: Jun 2005 Location: FuckingBusiness.net
Posts: 373
![]() |
Try it on : http://habrturk.com/1.htm
__________________ Tandiono.com | Mikess.com | WebsiteForum.net | AudioForum.net | ToysForum.net | GadgetForum.net | ClickBankForum.net | ForumBoards.net | VerySoon.net | ClickBanks.net | ||||
| |
| | #10 (permalink) |
| Buy my domains. Join Date: Feb 2006
Posts: 2,792
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | I have no clue what you are doing.. http://habrturk.com/dick_head goes to http://www.travels.sg/ Also, you're 1.htm can't do anything with the URL so.. |
| |
| | #11 (permalink) |
| NamePros Expert Join Date: Nov 2003 Location: Scotland
Posts: 5,074
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Dan he is trying to change the text on a page not the address of the page. tandiono is the blog written in php? If so you could do something like the following on the output:- PHP Code: |
| |
| | #13 (permalink) | ||||
| NamePros Expert Join Date: Nov 2003 Location: Scotland
Posts: 5,074
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| ||||
| |
| | THREAD STARTER #16 (permalink) |
| Tandiono.com Join Date: Jun 2005 Location: FuckingBusiness.net
Posts: 373
![]() | that's allright guys ![]() Thanks for the help.. I'll try to play around with it..
__________________ Tandiono.com | Mikess.com | WebsiteForum.net | AudioForum.net | ToysForum.net | GadgetForum.net | ClickBankForum.net | ForumBoards.net | VerySoon.net | ClickBanks.net |
| |
| | #17 (permalink) |
| Resistance is Futile Join Date: Apr 2006 Location: Montreal, Canada
Posts: 1,094
![]() ![]() ![]() ![]() ![]() ![]() | .htaccess can't do this, only a server side program such as PHP can do this. The example filth@flexiwebhost gave would work as well as the str_replace function.
__________________ Freelance Web Developer PHP, MySQL, XHTML, CSS, Javascript, jQuery, Wordpress Portfolio: www.bundy.ca |
| |
| | #18 (permalink) | ||||
| Senior Member Join Date: Aug 2003 Location: SW Ohio
Posts: 4,015
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
????: NamePros.com http://www.namepros.com/showthread.php?t=244812 I would suggest a better solution would be to filter before the post is actually written, or find/replace the posted text shortly after written. To help with that, we would probably need to know the application being used and the format of the posting (HTML form, PHP, etc.)
__________________ AdoptableDomains.com ~~~~~Finding Good Homes for Good Names~~~~~ FuelPrices.mobi - Fish.us - ManhattanNewYork.net - Salesmen.info - SoundSystems.org Dickering.com - JobPlacement.biz - LotteryTickets.ws - Deleted.cc - Names.im - MP3.hn | ||||
| |
| | #19 (permalink) | ||||
| Buy my domains. Join Date: Feb 2006
Posts: 2,792
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
????: NamePros.com http://www.namepros.com/showthread.php?t=244812 If tandiono is looking for help with an HTML <form .. that uses method="post", .htaccess won't be able to help. It could help, however, if it used get. | ||||
| |
| | #20 (permalink) |
| NamePros Regular Join Date: Feb 2006
Posts: 276
![]() ![]() ![]() | To learn a good bit about .htaccess, check out this. http://www.javascriptkit.com/howto/htaccess.shtml |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |