SEO friendly URLs (RISOLTO)
Moderator: magallo
- protempore
- Power Poster
- Posts: 599
- Joined: Mon Jan 14, 2008 9:08 pm
SEO friendly URLs (RISOLTO)
per realizzare l'URL rewriting è sufficiente la modifica del file config.php e l'inserimento del file .htaccess?
grazie
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)
Mahatma Gandhi (1869-1948)
Re: SEO friendly URLs
Yesprotempore wrote: per realizzare l'URL rewriting è sufficiente la modifica del file config.php e l'inserimento del file .htaccess?
Alby
Re: SEO friendly URLs
Esattamente.protempore wrote: per realizzare l'URL rewriting è sufficiente la modifica del file config.php e l'inserimento del file .htaccess?
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.
- protempore
- Power Poster
- Posts: 599
- Joined: Mon Jan 14, 2008 9:08 pm
Re: SEO friendly URLs
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"?
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)
Mahatma Gandhi (1869-1948)
Re: SEO friendly URLs
Leggi qua step1protempore 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"?
Alby
- protempore
- Power Poster
- Posts: 599
- Joined: Mon Jan 14, 2008 9:08 pm
Re: SEO friendly URLs
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]

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)
Mahatma Gandhi (1869-1948)
Re: SEO friendly URLs
Hai provato a vedere l'errore nel server log (tutti gli errori sono loggati)protempore wrote: ottengo sempre un errore 500...![]()
Alby
- protempore
- Power Poster
- Posts: 599
- Joined: Mon Jan 14, 2008 9:08 pm
Re: SEO friendly URLs
dovrebbe essere questo:alby wrote: Hai provato a vedere l'errore nel server log (tutti gli errori sono loggati)
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
An eye for an eye will make the whole world blind
Mahatma Gandhi (1869-1948)
Mahatma Gandhi (1869-1948)
Re: SEO friendly URLs
Probabilmente hai dei caratteri spuri che non vedi ('%{REQUEST_FILENAME}\xca!-f'), usa il Blocco note per copia/incolla del testoprotempore wrote: che vuol dire?
Alby
- protempore
- Power Poster
- Posts: 599
- Joined: Mon Jan 14, 2008 9:08 pm
Re: SEO friendly URLs
uso TextWrangler su Mac...alby wrote: Probabilmente hai dei caratteri spuri che non vedi ('%{REQUEST_FILENAME}\xca!-f'), usa il Blocco note per copia/incolla del testo

...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)
Mahatma Gandhi (1869-1948)
- protempore
- Power Poster
- Posts: 599
- Joined: Mon Jan 14, 2008 9:08 pm
Re: SEO friendly URLs
grazie,blast2007 wrote:Esattamente.protempore wrote: per realizzare l'URL rewriting è sufficiente la modifica del file config.php e l'inserimento del file .htaccess?
P.S. Per ottenere buoni risultati anche con le news e i motori di ricerca (SEO), allora puoi utilizzare questa procedura.
Ciao
blast
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)
Mahatma Gandhi (1869-1948)