Will ReDJ redirect stand-alone html pages
-
rowby
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 11
-
Thank you received: 1
-
-
11 years 1 day ago - 11 years 1 day ago #2327
by rowby
Hello
I have some stand alone pages left over from a non-joomla site, sitting in the root of my webserver.
For example, they are named something like the below example:
piano.html
That page is physically on the server. It's not a Joomla page.
So via the browser that page would look like
www.website.com/piano.html
I want that to be directed to:
www.website.com/player-piano
Can this be done within ReDJ -- or do I need to do that via the usual 301 redirect command in a .htacess file.
Thanks!
Rowby
Last edit: 11 years 1 day ago by rowby.
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
11 years 11 hours ago #2328
by admin
Hi,
to manage these kind of redirection you must first rename or move the original file. This is because for static existing files the web server just returns them, without any other action. So, there's no way for Joomla (and ReDJ) to manage them.
When the file doesn't exist, you can tell to apache to pass any 404 error to Joomla with ErrorDocument, and then create redirection rules with ReDJ.
Kind regards,
Luigi
Please Log in or Create an account to join the conversation.
Time to create page: 0.105 seconds