-1

Does anyone know how to 301 redirect a hashbang url to a prettyurl using .htaccess? I need it for my angularjs app thanks

Comments
  • 0
    I’ve only know of doing this via JavaScript Or reading the URL server side and forcing a redirect that way.

    I don’t think ( could be wrong ) Apache can redirect based on #
  • 1
    You might want to ask on Stack Overflow... but don't blame me if you suffer from PTSD afterwards :P
  • 0
    @C0D4 HI C0D4 Thanks for your response, can you share some code snippet for angularjs which does 301 redirect for the hashbang url because old urls are already cached by google and google is giving us warnings for duplicate content.

    Thanks a lot
  • 0
    @AlexDeLarge Hi Alex,
    I'm Sorry I may sound like a noob to you which I am but can you share some codes on how to do it?

    Thanks
  • 0
    @AlexDeLarge Hi Thank you very much for your response Alex, I'm trying to get a grip on what you said, I'm using MEAN stack so let's see if I can make it server respond with 301 redirect
Add Comment