slickdf Posted January 11, 2009 Share Posted January 11, 2009 Would it be possible to do a URL rewrite in a .htaccess to change "/Templates/Default/" to "/" so for example "/Templates/Default/login.aspx" would be "/login.aspx"? Thanks in advance. Link to comment Share on other sites More sharing options...
JasonF Posted January 11, 2009 Share Posted January 11, 2009 Well, that url is the physical location from the Web folder. If you go to the TCAdmin Control Panel\Web folder, you can navigate to the Templates\Default folder. I tried changing the home directory of the tcadmin website just now to C:\Program Files\TCAdmin Control Panel\Web\Templates\Default and you get a server error. Link to comment Share on other sites More sharing options...
KingJ Posted January 11, 2009 Share Posted January 11, 2009 Well, that url is the physical location from the Web folder. If you go to the TCAdmin Control Panel\Web folder, you can navigate to the Templates\Default folder. I tried changing the home directory of the tcadmin website just now to C:\Program Files\TCAdmin Control Panel\Web\Templates\Default and you get a server error. URL rewriting gets around that. When you request /page.aspx you can make a rewrite rule to actually request and return /templates/default/page.aspx. As long as the TCAdmin URLs are relative and not absolute, it should work -give it a go! Link to comment Share on other sites More sharing options...
slickdf Posted January 11, 2009 Author Share Posted January 11, 2009 It can't be with htaccess since its on IIS, will have to be with ASP rewrites. Not sure about that. Link to comment Share on other sites More sharing options...
KingJ Posted January 11, 2009 Share Posted January 11, 2009 Yes it can be apache-style rewrites on IIS - take a look at Iconic's ISAPI Rewrite Filter. I use it with my main site running on IIS, no reason why it won't work with TCAdmin IIS site. The only difference is that it loads the rewrite settings from the same directory that the DLL is in, not via .htaccess. Link to comment Share on other sites More sharing options...
slickdf Posted January 11, 2009 Author Share Posted January 11, 2009 Just been looking and not like apache there isnt a rewrite engine in there already. I have found this but seems little much effort http://urlrewriter.net. Link to comment Share on other sites More sharing options...
slickdf Posted January 12, 2009 Author Share Posted January 12, 2009 Im off to bed but if you get it to work KingJ let me know Link to comment Share on other sites More sharing options...
slickdf Posted January 13, 2009 Author Share Posted January 13, 2009 Nobody? Link to comment Share on other sites More sharing options...
KingJ Posted January 13, 2009 Share Posted January 13, 2009 Im off to bed but if you get it to work KingJ let me know I only said it was possible, not that I would do it. By all means give it a go but as the panel isn't meant for SEO or will benefit it in any way, I don't thnk there is a real need for it. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.