Fork me on GitHub

HELP! AutoURLs have LOCKED ME OUT OF MY SITE!!!  Bottom

  • I'm locked out of my site. I was using the AutoTheme admin panel to set AutoURLs. Now all of the links on my site are calling for pages that end in name-whatever_module.phtml So when I type in my administrative user name and password, the site looks for a page that ends in phtml, but all of the files in my directory end in PHP or HTML. So the only page I can access from my site is a 404 Not Found error page. How do I gain entry back into my site's administration panel?

    For reference, I was trying to follow the AutoURL steps on this website: http://spidean.mckenzies.net/modules/AutoTheme/docs/at17_user_guide_eng.html#_Toc80948611

    AutoURLs

    This Extra requires the Apache web server with mod_rewrite enabled and one of the included .htaccess files present in your CMS root directory. AutoURLs converts URLs on your site into shorter URLs that are friendlier and search engine optimized.

    You can choose the extension that is used for the new URLs. Choose the appropriate .htaccess file from: “htm.htaccess”, “html.htaccess” or “phtml.htaccess” and rename it to “.htaccess.”


    I've searched for an answer, but couldn't find anything comprehensive enough for a noob like me. Please help!
  • Nevermind. I solved the problem. For those of you that are as dumb as I am, here's the fix:

    1. Follow this path in your PostNuke directory:

    HTML\modules\AutoTheme\extras\postnuke

    2. Open the autourls.ext.php file in a text editor.

    3. Locate the following strings:

    $replace = array (
    '"changelang-$1.'.$autourlsext.'"',
    '"changetheme-$1.'.$autourlsext.'"',
    '"index.'.$autourlsext.'"',
    '"user.'.$autourlsext.'"',

    4. Change the part in red to user.php.

    5. Now you can log back into your site, go into the AutoThemes administration panel, then go into the Extras section to turn the AutoURLs off or properly set their extension using the Configuration link.

    6. Now you should go back into the autourls.ext.php file in your text editor and set user.php back to user.'.$autourlsext.'.

    Not too bad for a complete noob, I guess.... :D
  • Hello,
    just in case anybody else has this problem, you must understand short urls don't prevent long urls from working.
    So just typing in your browser:
    http://your_site_url/index.php
    http://your_site_url/user.php?op=loginscreen&module=User
    http://admin.php?module=AutoTheme
    or any other URL will bring you to the proper place without editing any file.

    --
    Visit my live reef aquarium.

    My Amazon wish list.
  • Oh.... Well sure, I guess you could do it the EASY way.... wink
  • I don't know about AutoTheme, but Xanthia doesn't rewrite administration urls, so you can still access your administration interface through links on your site even with shortURLs broken.

    --
    itbegins.co.uk - Zikula Consulting

    birtwistle.me.uk - Personal Blog


    Please read the Support Guide
  • Also, unless you are totally determined to do it the hard way :) you could aways get into you site with:

    http://www.YOURSITE.COM/user.php?module=NS-User&op=login&uname=YOURUSERNAME&pass=YOURPASS&URL=index.php

    It's neat to have that in your bookmarks, Saves few key strokes and mouse movements. :)

This list is based on users active over the last 60 minutes.