Knowledgebase

Portal Home > Knowledgebase > Articles Database > How to filter multiple URLS?


How to filter multiple URLS?




Posted by bambinou, 09-02-2010, 04:09 PM
Hello, I am looking for a tool which could delete particular URLs when a keyword has been entered. For example, let's say I have: http://www.asite.com/fast-action-gadgets and http://www.asite.com/slow-action-gadgets if I type the word "fast" I would like to have the url from the first line removed. Any idea if yo have heard of a freeware tools which can do that? Thanks, Ben

Posted by blazedd, 09-02-2010, 04:22 PM
No "Software" or "freeware" tools do this. You need to use your httpd service (normally Apache, some people use Nginx) to do the rewrites. I typically use an .htaccess file do the following: If file exist: Serve file Otherwise: send to index.php my index.php file includes my framework (I suggest codeIgnigter . com) that then parses the URL.

Posted by bambinou, 09-02-2010, 04:24 PM
I am sorry I did not explain my problem properly, I have a list of about 300 URLS to filter, everything is on excel,it is not via internet not http://

Posted by blazedd, 09-02-2010, 04:26 PM
Oh, lol sorry. Use Open Office Search and replace to replace the stuff you don't want with "" (nothing)

Posted by bambinou, 09-02-2010, 04:29 PM
Thanks lol I knew I did not explain my problem properly...I should have corrected the first thread...my fault. I am in open office now, do you know if there is a function which let me keep only particular keywords per line. for exemple ,out of those 300 URL I would only like to keep the ones that have 1 spcecial keyword in it. Thanks for your help, Ben

Posted by blazedd, 09-02-2010, 05:28 PM
There might be an regular expression plugin ?

Posted by bambinou, 09-02-2010, 05:30 PM
I really do not know to be honest, I have been on open office for ages and cannot find any help or freeware anywhere.

Posted by nvieira, 09-02-2010, 08:32 PM
check sed... (also, awk, grep, etc)... example: # echo "http://www.asite.com/fast-action-gadgets" | sed s/fast/slow/g http://www.asite.com/slow-action-gadgets # echo "http://www.asite.com/fast-action-gadgets" | sed s/fast\-//g http://www.asite.com/action-gadgets hope it helps.

Posted by File1eu, 09-05-2010, 03:40 AM
You can also use the Apache rewrite engine if you're on an apache server, else the suggestion from nvieira is probably the easiest

Posted by samualdany, 09-16-2010, 12:05 AM
In my view use search if you're on an apache server, else the suggestion from nvieira is believably the most comfortable



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read


Language:

Contact us