Jump to content

Recommended Posts

Posted

I moved an old site to processwire and want to redirect the old URLs with php-filenames to the new folders via .htaccess to match the new structure.

I tried:

RedirectMatch 301 /filename.php http://example.com/filename/

The Browser end up like this:
http://example.com/filename/?it=filename.php

Its interfering with that Processwire .htaccess rule

# ----------------------------------------------------------------------------------------------- 

  # Pass control to ProcessWire if all the above directives allow us to this point.
  # For regular VirtualHosts (most installs)
  # ----------------------------------------------------------------------------------------------- 
   RewriteRule ^(.*)$ index.php?it=$1 [L,QSA]
 
If i comment that out the redirect in the URL is ok, but every Klick on a websitelink is showing the homepage.
 
Any idea how i can fix this?
Thanks
 
Andreas
Posted

Just redirect before the mentioned .htaccess rule. But I'd also suggest looking into ProcessRedirects or Jumplinks, which are GUI modules, where you can set up redirects.

Posted

Thank you for the quick response. I already tried to apply the rule before, but same result. Is there one of the modules you can recommend?

Andreas

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...