thecadams / 301RedirectModule

An improved version of the Sitecore 301 redirect module by Chris Castle, available at http://trac.sitecore.net/301RedirectModule
MIT License
30 stars 66 forks source link

Will this work on a development server? #9

Open crimsondiva opened 9 years ago

crimsondiva commented 9 years ago

Hi,

I'm attempting to test this on my development server, but it's not working. I was initially getting an error in the logs because I forgot to publish the templates, but now, the logs are clean yet it's still not redirecting when I use either option. I'm running Sitecore 6.6.

thecadams commented 9 years ago

Hi!

Which pipeline is it being included in, and where? Have all the items been created at the locations the .cs file is mentioning? Are your item IDs for the template and folder all the same as the ones referenced in the code, and are they at the paths the code expects?

Can you check all those things for me too?

Cheers Chris

crimsondiva commented 9 years ago

Thanks for responding!

Uh oh. I must be missing a lot of the documentation. The only thing I did was add the package to Sitecore and publish the Templates folder and the Module. I wasn't aware that I had to anything else to get this working.

thecadams commented 9 years ago

You also need to install the config file; but I did think the package took care of that, however it might not take care of getting it into the right place for where your build puts your Sitecore instance. Ugh.. I was about to suggest checking the logs, but it doesn't log!

(I'll gladly accept a pull request!!!)

Can you check the config file is installed where your server is running from?

crimsondiva commented 9 years ago

The config file is correctly located in the App_config/Include folder. Here's what it looks like in Sitecore. sitecore

thecadams commented 9 years ago

Hmmm, I can't see anything obvious; looks like the query should be finding the item, the template name is correct. Can I suggest you build your own copy with better logging in Redirects.cs?