Search the Community
Showing results for tags 'rewrite'.
Hello everyone, hopefully this is the right place to ask and is not a duplicate question. I'm pretty new to processwire, so... if this question is kind of funny for some of you, you're welcome 😄 I have the following issue and can't find anything understandable about it. Maybe I'm searching the wrong way, but anyways.. here is my question: How is it possible to rewrite the URLs, that I'll get a *.php ending? Example: https://www.mysite.de/urlsegment/ -> https://www.mysite.de/urlsegment.php https://www.mysite.de/urlsegment/urlsegment/ -> https://www.mysite.de/urlsegment/
Hi there, Goal: user profile visible as: http://mysite.com/username So far visible as: http://mysite.com/user.show?user=username 404 template: <?php $username=$input->get->user;?> <? $hello = $users->get($username); echo $hello->name; echo $hello->id;?> I have added this to .htacces RewriteRule ^[A-Za-z-]+/([A-Za-z0-9-]+)/?$ user.show?user=$1 [NC,L] But it doesn't work. It would be much better to not use 404 template.. Any idea how to get this working? edit: I've added page and template "show" with the above code. I have added this c
I'd be grateful if anyone has a solution to the following issue. By default Processwire builds its urls like this: www.domain.com/pagenameparent/pagenamechild On the surface this seems excellent for SEO but has been causing us a few issues. Let me explain. In a responsive environment a drop-down menu like below must activate on touch/click. And, the top level is NOT a page. (Obvious, when you consider that you cannot 'click' to this link with your finger). See this example. Below you will see that ABOUT US is a top level menu with children. Is this arrangement on a Bootstrap menu A
Hi, I have a problem with the correct redirect-rules. My site-structure is: - continent 1 --- land 1 ----- project 11 ----- project 12 --- land 2 ----- project 21 - continent 2 ... - stuff --- donation form Now I want to use the same donation form in all projects. The relevant project should be preselected in a select field. For this I would like to create a rewrite rule in .htaccess. The url segments for the template are already approved. The url /continent1/land1/project11/donation should be to /stuff/donation/project11/land1/continent1. What is the correct rule? I've tried a c