PDA

View Full Version : Changing some default URLs to improve seo


imagis
01-09-2007, 10:53 PM
Hi,

I am trying to change some URL-s in order to optimize better for SEO.

Sample:

/top-links.html -> /top-tutorials.html


Aso...

Any ideas ?

John Turner
01-10-2007, 02:35 AM
Hi,

1. Open your '.htaccess' file
****find following code

RewriteRule ^top-links.html$ top-links.php [QSA,L]
RewriteRule ^top-links([0-9]+).html$ top-links.php?page=$1 [QSA,L]


****replace with following code

RewriteRule ^top-tutorials.html$ top-links.php [QSA,L]
RewriteRule ^top-tutorials([0-9]+).html$ top-links.php?page=$1 [QSA,L]


****Save and close it.

2. Open your '../templates/{YOUR TEMPLATE}/Layout.php' file
****find following code

$menu['top-links']['caption'] = $gDirLang['top_links'];
$menu['top-links']['url'] = $gDirConfig['mod_rewrite'] ? $url.'top-links.html' : $url.'top-links.php';


****replace with following code

$menu['top-links']['caption'] = 'Top Tutorials';
$menu['top-links']['url'] = $gDirConfig['mod_rewrite'] ? $url.'top-tutorials.html' : $url.'top-links.php';


****Save and close it.

Thats all.

imagis
01-12-2007, 04:47 PM
Thanks.

I think i will wait for 2.1 before apllying more customisation because already did a lot of small customizations and will be lost when i will migrate to 2.1.

John Turner
01-23-2007, 08:21 AM
You are welcome imagis.

I think i will wait for 2.1 before apllying more customisation because already did a lot of small customizations and will be lost when i will migrate to 2.1.
Good idea.