[ar] [ca] [cpf] [de] [en] [es] [fr] [it]

This is where you can ask questions about the SPIP cms.

Topics : 254 Topics solved :  31 %

41 visitors now


Home > Forums about SPIP >  Administration, management and configuration of your site > How can i change the url of my site to the Arborescent URLs?

How can i change the url of my site to the Arborescent URLs?

by djallas - 15 November 2013 11:27 - Replies : 5

I want to change how the urls of my website looks, i prefer "Arborescent URLs" from "Setup the URLs" in the admin panel, what should i do to set it!
Thank you!


  • in SPIP3:

    1. go to the URLs menu ?exec=configurer_urls and choose Arborescent URLs
    2. make sure that your .htaccess is working

  • Hello, i have selected Arborescent URLs like you told me in step one but the problem is about step 2, i dont understand when .htaccess is working well, there is an .htaccess file that comes with spip pack(when installing), is there anything to change in it? thank you for your help!


  • in the pack, you have a htaccess.txt
    simply rename it to .htaccess to activate it.

    sometimes, you have to edit it to set the "RewriteBase" (if your website is in subdirectory) but in most of the cases it works like that.


  • Hello once again,
    I have tried what you told me unfortunately it does work, i dont know why!
    I have tried to edit my ".htaccess" according to what they said in htaccess comments on line 28-30 and still it doesnt work, is it helpful? what else can i do?
    here it is how the ".htaccess" looks in that lines:

    1. RewriteBase /
    2.  
    3.  
    4. # SPIP version 'php' - si vous avez d'anciennes adresses en '.php[3]',
    5. # supprimez le '#' sur les lignes qui suivent pour rediriger les acces
    6. # errones vers le .php correspondant
    7.  
    8. RewriteCond %{REQUEST_FILENAME} -f
    9. RewriteRule ^(.+)\.php[3]$ $1.php [QSA,L]

    Download

    Thank you!


  • Make sure you have the following lines in your .htaccess file. If it is commented (#) just make it a comment.
    ##################################################

    RewriteEngine On

    ################ CONFIGURATION ######################

    ### Configuration sous-repertoire

    # Calcule automatiquememt le RewriteBase (qui permet de faire fonctionner
    # les belles URLs). De la sorte, un meme site peut etre affiche en racine
    # ou dans un sous repertoire sans devoir modifier la ligne RewriteBase.

    RewriteCond %REQUEST_URI::$1 ^(/.+)/(.*)::\2$
    RewriteRule ^(.*) - [E=BASE:%1]

    # Chez la plupart des hebergeurs il faut indiquer "RewriteBase /"
    # sinon modifiez cette ligne

    #RewriteBase /


  •  


Answering the question

« How can i change the url of my site to the Arborescent URLs? »

Keywords

You can tag this forum page with the keywords that you think are the most appropriate. This will help future visitors to find answers more quickly.


Installation, updates

Using the private area

Administration, management and configuration of your site

Creating your templates

Who are you?
  • Log in Register

  • How to place a JavaScript link as an image

    by Leandro
    25 April 04:28

    No reply

    I need help to paste a javascript link (a poll) as an image of an article. How do i do that?

  • Backup the content of the database, fails to create a file

    by CLA001
    8 March 2016 09:15

    Replies : 2

    My last backups were about 600kb I’m guessing that’s not big :) I will look into the add-on and if I cant figure that out ill try the phpmyadmin. Thanks for your (...)

  • Category Page is not displaying

    by devkbsc
    22 September 2015 16:33

    Replies : 2

    Hello, your reply have give me a confidence! If you say it’s a personalised per i am not the one who developped that page. I am a new developer after the one who developped that page. Now it’s (...)

  • How can i change the url of my site to the Arborescent URLs?

    by JMV
    14 July 2015 14:39

    Replies : 5

    Make sure you have the following lines in your .htaccess file. If it is commented (#) just make it a comment. ################################################## RewriteEngine On (...)

  • i can't access the site

    by Radwa
    10 March 2015 13:06

    Replies : 4

    Hi , I have the same problem , I upgraded the server to wheezy so the php version changed but I can’t update spip as I can’t access the private area is there a way to have spip working on (...)

  • chang register form from writer

    7 December 2014 09:16

    No reply

    hello i want insert an item in register writer form .plz led me.thanks

  • how to change toolbar to enhance my texts

    by djallas
    1 December 2014 16:36

    No reply

    hello everyone, how can i change the text toolbar appeared when writing an article ? i want to use mine my spip version is SPIP 3.0.17 Thank you

  • SQL error 1052

    by Gilles
    8 June 2012 18:21

    Replies : 11

    It’s not the same error. What is the exact SQL query that fails ? Don’t forget to remove /tmp/cache after restoration. Contact me by Private Message if you want me to check that your dump.xml file (...)

  • Can I find a deleted item?

    by Mkode
    23 September 2014 14:11

    Solved - Replies : 1

    [12:24] boucle with statut = poubelle [12:25] but the get deleted of db every X days [12:25] (X value is 15 or 30, can’t remmember)

  • I don't find a page

    by Suske
    9 September 2014 17:16

    Replies : 1

    Use /?page=contact&var_mode=inclure to see which part of your skeletton gives the form.

  • Forum posts : 280
  • 95 30 %
  • Ask a new question