phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
search.php keywords mod_rewrite for advanced mod Rewrite
Goto page 1, 2  Next
 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB mod Rewrite  » Advanced mod Rewrite
::  
Author Message
emma1989



Joined: 17 Sep 2007
Posts: 22

search.php keywords mod_rewrite for advanced mod RewritePosted: Sun Sep 23, 2007 12:27 am    Post subject: search.php keywords mod_rewrite for advanced mod Rewrite

I'm sure this could easily be done... more easy than my other "requests"!

I know search keywords work like this:
http://www.example.com/search.php?search_keywords=searchterm

could we mod_rewrite to this....?

http://www.example.com/search/searchterm

searchterm being your keyword in the url examples above Smile

rather like a tag on delicious, but for searches?

Could this be possible - and if so what code changes are needed? Smile

Exact edits? Razz

Thanks so much guys, and congrats again for a great site!

xx
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 13354

search.php keywords mod_rewrite for advanced mod RewritePosted: Mon Sep 24, 2007 11:42 am    Post subject: Re: search.php keywords mod_rewrite for advanced mod Rewrite

The problem is, this type of link is not used by phpBB when you search.

But this could be a nice thing to had together with mods building such links.

We'll work on a tag cloud mod Wink

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
emma1989



Joined: 17 Sep 2007
Posts: 22

search.php keywords mod_rewrite for advanced mod RewritePosted: Mon Sep 24, 2007 12:12 pm    Post subject: Re: search.php keywords mod_rewrite for advanced mod Rewrite

I use a tag cloud mod already.

Which is why Im asking - could you work on my concept with this mod..?

Wordgraph mod (Tag Cloud mod)

http://www.pentapenguin.com/forum/viewtopic.php?f=13&p=12426

Download here: http://sourceforge.net/project/downloading.php?groupname=pentapenguin&filename=phpbb_wordgraph_mod_0.1.0.zip&use_mirror=belnet

Thanks Smile
Back to top
emma1989



Joined: 17 Sep 2007
Posts: 22

search.php keywords mod_rewrite for advanced mod RewritePosted: Wed Sep 26, 2007 9:15 am    Post subject: Re: search.php keywords mod_rewrite for advanced mod Rewrite

... Smile
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 13354

search.php keywords mod_rewrite for advanced mod RewritePosted: Thu Sep 27, 2007 9:08 am    Post subject: Re: search.php keywords mod_rewrite for advanced mod Rewrite

As said :
dcz wrote:

We'll work on a tag cloud mod Wink


I'm currently working on the GYM sitemaps module for phpBB3, which looks to me like more important (I'm sure you'll appreciate it a lot Wink)

Then, we'll work on other mods.

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
emma1989



Joined: 17 Sep 2007
Posts: 22

search.php keywords mod_rewrite for advanced mod RewritePosted: Sat Sep 29, 2007 9:26 pm    Post subject: Re: search.php keywords mod_rewrite for advanced mod Rewrite

fair enough.

no problems
Back to top
emma1989



Joined: 17 Sep 2007
Posts: 22

search.php keywords mod_rewrite for advanced mod RewritePosted: Wed Oct 03, 2007 9:00 pm    Post subject: Re: search.php keywords mod_rewrite for advanced mod Rewrite

This was easy, achieved with only 2 edits one to .htaccess and a quick one in wordgraph.php Cool
Back to top
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 3118

search.php keywords mod_rewrite for advanced mod RewritePosted: Thu Oct 04, 2007 8:31 am    Post subject: Re: search.php keywords mod_rewrite for advanced mod Rewrite

Please share Wink

_________________
Back to top
emma1989



Joined: 17 Sep 2007
Posts: 22

search.php keywords mod_rewrite for advanced mod RewritePosted: Fri Nov 30, 2007 6:18 pm    Post subject: Re: search.php keywords mod_rewrite for advanced mod Rewrite

Code:
foreach ( $words_array as $word => $count )
{
   $template->assign_block_vars('wordgraph_loop', array(
      'WORD' => ( $board_config['word_graph_word_counts'] ) ? $word . ' (' . $count . ')' : $word,
      'WORD_FONT_SIZE' => (int) ( 9 + ( $count * $ratio ) ),
      'WORD_SEARCH_URL' => append_sid("search/" . urlencode($word)),
   ));
}

));

Thats in wordgraph.php, at the bottom Smile Simple edit there!


.htaccess is simply
Code:
Rewriterule ^search/([a-z0-9_-]*)$ /search.php?return_chars=-1&search_keywords=$1 [QSA,L,NC]
Back to top
PerfRen



Joined: 01 Nov 2007
Posts: 36

search.php keywords mod_rewrite for advanced mod RewritePosted: Tue Dec 04, 2007 2:25 pm    Post subject: Re: search.php keywords mod_rewrite for advanced mod Rewrite

Hi,

I have the wordgraph too and saw your post so decided to give it a go - very cool idea - the only difference I made was to the .htaccess file as my forum resides in a /forum/ subfolder:

Code:
Rewriterule ^forum/search/([a-z0-9_-]*)$ /forum/search.php?return_chars=-1&search_keywords=$1 [QSA,L,NC]


It all works great and the new tag'esque' Url's open up a search window perfectly. However half the page is then missing and it is looking for all my graphics and template addons in the "search" directory which doesnt exist - and the URL's for the search posts now have "/search/" in them so the links dont work!

See: http://www.performancerenaults.com/forum/wordgraph.php

Is there any way of fixing this and getting it to work as it should?

If there isnt I will revert my copy of wordgraph and remove the .htaccess line.

Thanks for any help in advance!
Back to top
PerfRen



Joined: 01 Nov 2007
Posts: 36

search.php keywords mod_rewrite for advanced mod RewritePosted: Thu Dec 06, 2007 9:05 am    Post subject: Re: search.php keywords mod_rewrite for advanced mod Rewrite

... Smile
Back to top
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 3118

search.php keywords mod_rewrite for advanced mod RewritePosted: Sun Dec 09, 2007 1:25 pm    Post subject: Re: search.php keywords mod_rewrite for advanced mod Rewrite

Thanks for sharing emma1989, looks like we now have a patch for the wordgraph mod thanks to you Very Happy

_________________
Back to top
PerfRen



Joined: 01 Nov 2007
Posts: 36

search.php keywords mod_rewrite for advanced mod RewritePosted: Mon Dec 10, 2007 9:09 am    Post subject: Re: search.php keywords mod_rewrite for advanced mod Rewrite

However it doesnt fully work Smile

There is one piece missing which is my post above!
Back to top
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 3118

search.php keywords mod_rewrite for advanced mod RewritePosted: Mon Dec 10, 2007 1:09 pm    Post subject: Re: search.php keywords mod_rewrite for advanced mod Rewrite

Ho, I see.

Just add :
Code:
<base href="http://www.yourdomain.com/phpbbpath/">


after :
Code:
<head>


In your overall_header.tpl Wink

_________________
Back to top
PerfRen



Joined: 01 Nov 2007
Posts: 36

search.php keywords mod_rewrite for advanced mod RewritePosted: Mon Dec 10, 2007 1:26 pm    Post subject: Re: search.php keywords mod_rewrite for advanced mod Rewrite

Thanks for the reply...

Which file do I need to do that to?

Many thanks Smile
Back to top
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB mod Rewrite  » Advanced mod Rewrite
Page 1 of 2 Goto page 1, 2  Next

Navigation Similar Topics

Jump to: