Fork me on GitHub

how to use shorturls?  Bottom

  • hi,
    i want to use shorturl in my PN site.
    i have enabled Use short URLS , but when i clicked a link i have gotten this message
    'The page cannot be found'.

    i guess maybe it is related to rewrite module ,but i don't know how to check it and fix it.
    my OS is debian.

    thanks
  • Have you put the appropriate .htaccess in place? Are you using .7x or .8x?

    --
    itbegins.co.uk - Zikula Consulting

    birtwistle.me.uk - Personal Blog


    Please read the Support Guide
  • yes,i have copied .htaccess from Xanthia module folder in root of my site.
    and i am using PN .7x .
  • Is your URL extension set correctly? If so, did you copy the correct .htaccess? (there are different .htaccesses for each extension)

    --
    itbegins.co.uk - Zikula Consulting

    birtwistle.me.uk - Personal Blog


    Please read the Support Guide
  • i have copied the one was for HTML .
  • finally shorturl got enable on my site.
    this link help me alot:
    http://drupal.org/node/11184
    but some urls change.
    those start whith module.php don't change.
    maybe i have to write new rewrite rule for them in .htaccess.yeah?
    for example this URL doesn't change:

    index.php?module=Blocks&type=admin&func=view





    edited by: daliri_ha, Nov 05, 2007 - 08:20 AM
  • Hi daliri!
    the admin links doesn't change (is this needed? i guess not)

    as you know now, the htaccess redirects the short-uls requests to PHP requests like 'index.php?module=...), this is the browser-to-site traslation, and you can see the site-to-browser URL filter, checking the file modules/Xanthia/plugins/outputfilter.shorturls.php

    This filter converts all the index.php?module.. links in short ones, and omits the admin links (mostly non-public ones)...

    --
    - Mateo T. -
    Mis principios... son mis fines
  • thanks i found it and look inside it.
    i guess for some of my written module i have to write something in this file and .htaccess file.
  • 0 users

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