Just started using ReDJ and it looks great! But I need help with one issue:
We have a production version and a development version of our Website. Each is in a different directory like this:
public_html/production/
public_html/development/
I installed ReDJ in the development version and found that I have to modify the .htacess file to make it work by adding the line:
# ErrorDocument 404 /development/
But .htaccess is in the public_html directory, which is the parent directory for both versions. So if someone hits a 404 error in production, the rule created on the development side is applied and the user is taken into the development version. Of course, I could change the line in .htaccess to refer to production rather than development, but then a user in the development version would end up in the production version.
The item that I created in the development version is like this:
FROM: /avidbirders
TO:
columbusaudubon.org/development/index.php?option=com_content&view=article&id=3&Itemid=5
I also tried making the TO URL into:
http://{siteurl}/index.php?option=com_content&view=article&id=3&Itemid=5
but it appears that {siteurl} refers to the location where the rule is housed, not the location where the request originates.
No doubt there is a way to be version-specific, and I looked through this forum for a solution, but as a newbie I have not found it.
By the way, we occasionally update the development version by copying the production version to the development directory. So ideally any solution would work by figuring out where the request originates.
Any help is greatly appreciated!