Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About makari

  • Rank
    Jr. Member

Profile Information

  • Gender
    Not Telling
  • Location
  1. part from the .htaccess file: # ProcessWire requires mod_rewrite # ----------------------------------------------------------------------------------------------- <IfModule mod_rewrite.c> RewriteEngine On AddDefaultCharset UTF-8 ### test RewriteCond %{QUERY_STRING} ^(\w+)/?$ RewriteRule ^$ /_redirect/%1/ [QSD,R=302,L] ### /test # ----------------------------------------------------------------------------------------------- # If you only want to allow HTTPS, uncomment the RewriteCond and RewriteRule lines below. # ----------------------------------------------------------------------------------------------- will produce an 500 server error for all 3 domains... For the first I wont to stop this try. There are no 404 errors and guests coming via old paths are landing on the index page. Not ideal but ok. Thank you for your help, Mike!
  2. RewriteCond %{QUERY_STRING} ^(\w+)/?$ RewriteRule ^$ /_redirect/%1/ [QSD,R=302,L] that - in the .htaccess file produces an 500 server error... What do you think about this two steps? Remove the question mark from the URL (with .htaccess) Redirect the URL with Jumplinks Unfortunetly I'm a bloody newbe in .htaccess syntax and regular expressions so I did not really understand, what things like the two lines above do.
  3. Hi Mike, unfortunetly it is the same with jumplinks: Installed, configured like redirekt (screeenshot above) but no effect. I have turned on the debug mode and tested again – jumplinks said: Created by admin on 2016-06-02 14:20:49 (6 minutes ago) Last updated by admin on 2016-06-02 14:20:49 (6 minutes ago) This jumplink hasn't been hit yet. hmm... edit: I have also turned on the 404 monitor. But I dont get any 404 errors – every time I call an old path it turns me to the index page.
  4. Hi, have a problem with a redesigned homepage with 3 domains in (that is new) one multisite PW installation. To prevent 404 errors with old paths i have installed this module. It looks great and every thing seems to be ok - but it takes no effect. Are there any problems or (better) hints with multisite-installations?
  5. So. I have installed ProcessRedirect because it looks more simple then jumplink. Testet it, but it takes no effect. May be, because it is a multisite installation??
  6. thank you. I've just installed and try jumplinks...
  7. Hello, I need to redirect the old paths after migration to a multisite PW installation. There are 3 domains and small differences between paths i.e. old path: domain-2/?text new path: domain-2/text or domain-2/new_text I try it via .htaccess (in the root direction) with an 301 redirect: redirect 301 domain/old_path domain/new_path -> generates an 500 server error What is wrong? How to do that?
  8. Thank you. I've tried it with $node->children->has($page) looks very good but it dit not work. (in the _main.php template) Don't know why. So I build it my own way. May be not elegant, but it works. <nav class="PV" id="navigation"><ul> <!-- top navigation --> <?php foreach($homepage->and($homepage->children) as $item){ if($item->name=='site-map') continue; // hide site-map if($item->id==$page->rootParent->id){ echo $page->id==$item->id ? "<li class='active'>" : "<li>"; } else { echo "<li>"; } echo "<a href='$item->url'>$item->title</a>"; if($item->name == 'home'){ echo "</li>"; continue; // don't open the children if homepage } if($item->numChildren(true) && $item->id == $page->rootParent->id) { echo "<ul>"; foreach($item->children as $sub_item) { echo $page->id==$sub_item->id ? "<li class='active'>" : "<li>"; echo "<a href='$sub_item->url'>$sub_item->title</a></li>"; } echo "</ul>"; } echo "</li>"; } // output an "Edit" link if this page happens to be editable by the current user if($page->editable()) echo "<li class='edit'><a href='$page->editUrl'>Edit</a></li>"; ?> </ul></nav> Thank you again. Whether I use you suggestions or not - your feedback is allways important for me to find the point. Matthias
  9. Hello, what I want to do is something like this: (for my navigation) list: ---------- home page-1 page-2 class='current' page-2-1 page-2-2 class='current' page-2-3 page-3 page-3-1 page-3-2 page-4 ... ---------- I have tried some but did'nt find a way for the parents. I'm sure, the solution is as simple as columbus egg... Any help for me? Thank you.
  10. long version: Now I use a Field named 'featured' with type 'Page' on the frontpage template - so the custumer can combine a set of featured objects on one place... foreach($page->featured->sort("-created") as $Objekt) { ... ; }
  11. Hallo, to show some featured objects on the front page, I use a field 'featured'. To show the newest first, I do this: foreach($pages->find("featured=1, sort=-date") as $Objekt) { ... ; } Tested it with sort=date | sort=-date, but there is no effekt to the output. What's wrong? Thank you
  12. I did it. But no SEO-tab anywere... I guess, some of the old versions data is left in the database - but how can I find that - and where?
  13. Hallo, till today I used version 0.3.0. Now I have deleted this and replaced it with 0.6.0. Since this I miss the SEO-tab. What makes the SEO-tab apear again?
  • Create New...