SEO friendly URLs (RISOLTO)

La discussione sul CMS Made Simple in italiano.

Moderator: magallo

Post Reply
User avatar
protempore
Power Poster
Power Poster
Posts: 599
Joined: Mon Jan 14, 2008 9:08 pm

SEO friendly URLs (RISOLTO)

Post by protempore »

per realizzare l'URL rewriting è sufficiente la modifica del file config.php e l'inserimento del file .htaccess?

grazie
Last edited by protempore on Fri Jul 04, 2008 8:35 am, edited 1 time in total.
An eye for an eye will make the whole world blind
Mahatma Gandhi (1869-1948)
alby

Re: SEO friendly URLs

Post by alby »

protempore wrote: per realizzare l'URL rewriting è sufficiente la modifica del file config.php e l'inserimento del file .htaccess?
Yes

Alby
User avatar
blast2007
Power Poster
Power Poster
Posts: 508
Joined: Wed Aug 01, 2007 5:36 pm

Re: SEO friendly URLs

Post by blast2007 »

protempore wrote: per realizzare l'URL rewriting è sufficiente la modifica del file config.php e l'inserimento del file .htaccess?
Esattamente.

P.S. Per ottenere buoni risultati anche con le news e i motori di ricerca (SEO), allora puoi utilizzare questa procedura.

Ciao
blast
Last edited by blast2007 on Sun Jun 29, 2008 9:24 pm, edited 1 time in total.
User avatar
protempore
Power Poster
Power Poster
Posts: 599
Joined: Mon Jan 14, 2008 9:08 pm

Re: SEO friendly URLs

Post by protempore »

ops...

Internal Server Error (500)

può essere dovuto al fatto che ho copiato pari...pari... il files .htaccess proposto, ma io ho installato il CMS non al primo livello della root del sito, ma dentro a una directory che ho chiamato "cms"?
Last edited by protempore on Mon Jun 30, 2008 4:49 am, edited 1 time in total.
An eye for an eye will make the whole world blind
Mahatma Gandhi (1869-1948)
alby

Re: SEO friendly URLs

Post by alby »

protempore wrote: Internal Server Error (500)

può essere dovuto al fatto che ho copiato pari...pari... il files .htaccess proposto, ma io ho installato il CMS non al primo livello della root del sito, ma dentro a una directory che ho chiamato "cms"?
Leggi qua step1

Alby
User avatar
protempore
Power Poster
Power Poster
Posts: 599
Joined: Mon Jan 14, 2008 9:08 pm

Re: SEO friendly URLs

Post by protempore »

ottengo sempre un errore 500... :-[

questa la mia configurazione:

CMSMS vers. 1.3.0

config.php:
#------------
#URL Settings
#------------
$config['assume_mod_rewrite'] = true;
$config['page_extension'] = '.html';
$config['internal_pretty_urls'] = true;
$config['use_hierarchy'] = true;
$config['query_var'] = 'page';

.htaccess:
_______________
Options +FollowSymLinks
RewriteEngine on
RewriteBase /cms

# CMSMS Rewriting
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+).html$ index.php?page=$1 [QSA]
An eye for an eye will make the whole world blind
Mahatma Gandhi (1869-1948)
alby

Re: SEO friendly URLs

Post by alby »

protempore wrote: ottengo sempre un errore 500... :-[
Hai provato a vedere l'errore nel server log (tutti gli errori sono loggati)

Alby
User avatar
protempore
Power Poster
Power Poster
Posts: 599
Joined: Mon Jan 14, 2008 9:08 pm

Re: SEO friendly URLs

Post by protempore »

alby wrote: Hai provato a vedere l'errore nel server log (tutti gli errori sono loggati)
dovrebbe essere questo:

Code: Select all

[Sun Jun 29 23:56:03 2008] [alert] [client 81.174.13.250] /home/admin/domains/e-serv.it/public_html/univco/cms/.htaccess: RewriteCond: bad argument line '%{REQUEST_FILENAME}\xca!-f'
[Sun Jun 29 23:56:03 2008] [error] [client 81.174.13.250] File does not exist: /home/admin/domains/e-serv.it/public_html/univco/500.shtml
che vuol dire?
An eye for an eye will make the whole world blind
Mahatma Gandhi (1869-1948)
alby

Re: SEO friendly URLs

Post by alby »

protempore wrote: che vuol dire?
Probabilmente hai dei caratteri spuri che non vedi ('%{REQUEST_FILENAME}\xca!-f'), usa il Blocco note per copia/incolla del testo

Alby
User avatar
protempore
Power Poster
Power Poster
Posts: 599
Joined: Mon Jan 14, 2008 9:08 pm

Re: SEO friendly URLs

Post by protempore »

alby wrote: Probabilmente hai dei caratteri spuri che non vedi ('%{REQUEST_FILENAME}\xca!-f'), usa il Blocco note per copia/incolla del testo
uso TextWrangler su Mac...
:D

...comunque ho visualizzato i caratteri invisibili... li ho cancellati e...

FUNZIONA!!!

grazie a tutti.
An eye for an eye will make the whole world blind
Mahatma Gandhi (1869-1948)
User avatar
protempore
Power Poster
Power Poster
Posts: 599
Joined: Mon Jan 14, 2008 9:08 pm

Re: SEO friendly URLs

Post by protempore »

blast2007 wrote:
protempore wrote: per realizzare l'URL rewriting è sufficiente la modifica del file config.php e l'inserimento del file .htaccess?
Esattamente.

P.S. Per ottenere buoni risultati anche con le news e i motori di ricerca (SEO), allora puoi utilizzare questa procedura.

Ciao
blast
grazie,
ho problemi con il modulo "Blogs"...

l'URL rewriting trasforma il link alla pagina il cui content è: {cms_module module="Blogs" catid="1"}

in

http://www.xxxxxx.it/cms/community/priv ... &m5catid=1

quindi il server mi rimanda un errore 404

diverso se non indico il parametro della categoria "catid" nel tag del content... allora non aggiunge la query string e tutto funziona...

come risolvo?
Last edited by protempore on Sun Jul 20, 2008 8:51 am, edited 1 time in total.
An eye for an eye will make the whole world blind
Mahatma Gandhi (1869-1948)
Post Reply

Return to “Italian - Italiano”