Uniadmin .htaccess permanent redirect issues for sync URL

Support and feedback for UniAdmin

Uniadmin .htaccess permanent redirect issues for sync URL

Postby lunzet » Mon Feb 11, 2008 5:51 pm

I have recently moved my uniadmin install to another subfolder and updated the uniadmin config. In order to redirect all existing installations to the new location i have implemented the following .htaccess redirect:

Code: Select all
Redirect permanent /uniadmin http://mydomain/bm/uniadmin


Unfortunately I have now found that the Sync URL for the settings is not updated with the current (correct) value.

Old sync URL:
Code: Select all
http://mydomain/uniadmin/interface.php
p

New Sync URL:
Code: Select all
http://mydomain/bm/uniadmin/interface.php


For now I have moved a copy of uniadmin into the root dir again just to update the Sync URL string to the new one.

Does anyone know why this redirect would cause this kind of issue? Can someone reproduce?

Thanks
Last edited by lunzet on Mon Feb 11, 2008 5:53 pm, edited 5 times in total.
User avatar
lunzet
WR.net Journeyman
WR.net Journeyman
 
Posts: 119
Joined: Sat Jan 13, 2007 1:23 pm

Uniadmin .htaccess permanent redirect issues for sync URL

Postby MattM » Tue Feb 12, 2008 1:53 am

It may be possible that, during the install, UA writes out values to a database table, one of which is the base URL/path for UA.
MattM
UA/UU Developer
UA/UU Developer
Gimpy Developer
Gimpy Developer
 
Posts: 886
Joined: Tue Jul 04, 2006 9:53 pm
Location: USA

Uniadmin .htaccess permanent redirect issues for sync URL

Postby zanix » Tue Feb 12, 2008 2:18 am

UU may not follow redirects
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Uniadmin .htaccess permanent redirect issues for sync URL

Postby lunzet » Tue Feb 12, 2008 2:36 am

Thanks for the answers. So the only way to move the uniadmin install is the way I have implemented the workaround and watch the logs getting less activity on the "old" location...right?
User avatar
lunzet
WR.net Journeyman
WR.net Journeyman
 
Posts: 119
Joined: Sat Jan 13, 2007 1:23 pm

Uniadmin .htaccess permanent redirect issues for sync URL

Postby zanix » Tue Feb 12, 2008 2:52 am

I suppose
Although Matt could update UU (hint, hint)

Another idea is to fake the output interface.php for the required settings
Open UU, and look at the debug tab, it shows all the requests to UA
You could then copy those requests, and have a new interface.php just output the data directly

Give me the debug tab and I might be able to build you a new file
(Please attach as a txt file)
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: Uniadmin .htaccess permanent redirect issues for sync UR

Postby lunzet » Tue Feb 12, 2008 4:54 pm

Thanks for the help.

Attached please find the debug output after enabling the redirect and switching the sync url back to the old url:
Code: Select all
http://turbolooser.dyndns.org/uniadmin/interface.php
Attachments
debug_notepad.txt
debug output with .htaccess redirect enabled from /uniadmin to /bm/uniadmin
(3.44 KiB) Downloaded 332 times
User avatar
lunzet
WR.net Journeyman
WR.net Journeyman
 
Posts: 119
Joined: Sat Jan 13, 2007 1:23 pm

Re: Uniadmin .htaccess permanent redirect issues for sync UR

Postby tuigii » Tue Feb 12, 2008 10:03 pm

lunzet wrote:
Code: Select all
http://turbolooser.dyndns.org/uniadmin/interface.php

Just for tke kicks, I put this URL in my UniULoader.

It's synced all my setting to your setup in no-time - I got even some of your (german !!) addons as a bonus - your PvPlog was more recent then mine : thanks for the sugestion :wink:

But : it worked - it looks to me that your server side is ok.
Saw no errors.
User avatar
tuigii
WR.net Master
WR.net Master
 
Posts: 891
Joined: Wed Dec 27, 2006 12:57 pm
Location: Somewhere in the South Ouest of France

Re: Uniadmin .htaccess permanent redirect issues for sync UR

Postby lunzet » Tue Feb 12, 2008 10:44 pm

nice to hear. But it will not vhange the sync url in my uniuploader to the correct one which is: http://turbolooser.dyndns.org/bm/uniadmin/interface.php

Can you reproduce?
User avatar
lunzet
WR.net Journeyman
WR.net Journeyman
 
Posts: 119
Joined: Sat Jan 13, 2007 1:23 pm

Uniadmin .htaccess permanent redirect issues for sync URL

Postby zanix » Wed Feb 13, 2008 1:30 pm

Here is a redirect interface.php
You should be able to replace /uniadmin/interface.php with this and delete all the other files

Keep it there for a month and you should be ok
Attachments
redirect_interface.zip
interface.php UniAdmin redirect for lunzet
To any others - DO NOT use without editing!
(944 Bytes) Downloaded 297 times
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US


Return to UniAdmin

Who is online

Users browsing this forum: No registered users and 0 guests