Tag Info

New answers tagged


I understand this isn't exactly what you're looking for but these hackers are most likely bots and redirecting them won't matter at all. I suppose you could modify the below code if you reallllly wanted to but this will redirect anybody looking for an author back to your homepage. RewriteCond %{REQUEST_URI} ^/$ RewriteCond %{QUERY_STRING} ...


You should keep the form on new-customer.php and set the form action to POST to another script (something like new-customer-process.php) and then paste your PHP code into that script. Essentially the user won't know any different as they will be redirected back to the home page. To give you a little more information, the form is what is sending the headers ...


*registration_redirect* is a filter hook, not an action hook, so your *redirect_after_success_registration* function never actually gets run. See this example of how to redirect using the filter: How to redirect a sucessful registration to a page template?


One simple option would be to add a parameter to the query string of the portfolio item (i.e. yousite.com/portfolio-item/?backto=portfolio-3), then on the item page modify the 'back' link with JavaScript: if the backto parameter exists then change the link to point to the portfolio specified in it. Here's some untested starter code. On the portfolio page ...

Top 50 recent answers are included