URL REWRITING sous JOOMLA! - Jb Burin .fr

Ce document est destiné à tous ceux qui souhaiteraient réécrire leur URL ... Pour que la réécriture d'URL fonctionne sur un site Joomla (comme sur n'importe.
300KB taille 7 téléchargements 231 vues
Auteur: Jb BURIN (http://jb.burin.free.fr) Date: Juillet 2008 Version du document: 0.1 Applicable à: Joomla! Catégorie: Url Rewriting

URL REWRITING sous JOOMLA! Ou comment réécrire ses liens de façon plus claire..

(avec le composant 404SEFx)

URL REWRINTING sous JOOMLA

1/19

Jb BURIN

Tables des Matières 1. INTRODUCTION 2. 1ère ETAPE : Activation de la Réécriture d'URL 3. 2ème ETAPE : Utilisation de 404SEFx ■ Particularité sur OVH ■ Particularité sur Free.fr ème 4. 3 ETAPE : Vérification du bon fonctionnement 5. CONCLUSION et REMERCIEMENTS 6. Annexe : documentation de 404SEFx

URL REWRINTING sous JOOMLA

2/19

Jb BURIN

1. INTRODUCTION Ce document est destiné à tous ceux qui souhaiteraient réécrire leur URL (liens web) de façon plus propre et plus attrayante sous joomla. Même si pourtant de nombreux tutos sont présents sur les forums joomla, certains sont en anglais et d'autres peu exploitables. Ici sera donc expliquée la technique d'URL REWRINTING avec le composant 404SEFx. Ce composant est téléchargeable à cette adresse : http://www.joomlafrance.org/Les_News/Composants/404sef_version_X.html Ce composant permettra de réécrire les urls : www.yoursite.com/index.php?option=com_content&task=section&id=1&Itemid=2 en www.yoursite.com/news/ Nous réécrirons nos URLs en 3 étapes : ● Activation de la réécriture des URLs pour Joomla ● Utilisation de 404SEFx pour une meilleure clarté ● Vérification du bon fonctionnement de nos réécritures

URL REWRINTING sous JOOMLA

3/19

Jb BURIN

2. 1ère ETAPE : Activation de la Réécriture d'URL Pour que la réécriture d'URL fonctionne sur un site Joomla (comme sur n'importe quel site), il faut que le module serveur mod_rewrite soit chargé. La plupart des hébergeurs l'ont déjà installé car il est quasiment toujours en standard avec Apache. (Donc ça ne devrait pas poser de problèmes !!) Ensuite, pour commençer, n'oubliez pas d'activer l'option SEF (Search Engine Friendly) dans le menu site/configuration globale.

Un message d'alerte devrait apparaître. Vous devez renommer ensuite le fichier htaccess.txt en .htaccess (via FTP). Ce fichier se situe à la racine de votre CMS Joomla. Une fois le mode SEF actif, vous devez obtenir des URL du type : http://www.yoursite.fr/section/article/ Les moteurs de recherche sont très friands de ce genre d'URL et vous devriez voir le nombre de pages indéxées augmenter sensiblement (à vérifier sur 4 à 8 semaines). La première étape est terminée ! Nous avons des URLs propres ! Maintenant, vous voulez qu'elles soient plus attrayantes. Nous allons voir comment dans la deuxième partie avec le composant 404SEFx.

URL REWRINTING sous JOOMLA

4/19

Jb BURIN

3. 2ème ETAPE : Utilisation de 404SEFx Téléchargez le composant ici : http://www.joomlafrance.org/Les_News/Composants/404sef_version_X.html et installez le comme pour l'installation d'un composant normal. Ensuite écrasez le .htaccess du serveur (via FTP) avec celui-ci (si le composant ne l'a pas déjà fait pour vous automatiquement !) (Remarque : le .htaccess est donné dans la documentation de l'installation)

## # @version $Id: htaccess.txt 2368 2006-02-14 17:40:02Z stingrey $ # @package Joomla # @copyright Copyright (C) 2005 Open Source Matters. All rights reserved. # @license http://www.gnu.org/copyleft/gpl.html GNU/GPL # Joomla! is Free Software ## ##################################################### # READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE # # The line just below this section: 'Options FollowSymLinks' may cause problems # with some server configurations. It is required for use of mod_rewrite, but may already # be set by your server administrator in a way that dissallows changing it in # your .htaccess file. If using it causes your server to error out, comment it out (add # to # beginning of line), reload your site in your browser and test your sef url's. If they work, # it has been set by your server administrator and you do not need it set here. # # Only use one of the two SEF sections that follow. Lines that can be uncommented # (and thus used) have only one #. Lines with two #'s should not be uncommented # In the section that you don't use, all lines should start with # # # For Standard SEF, use the standard SEF section. You can comment out # all of the RewriteCond lines and reduce your server's load if you # don't have directories in your root named 'component' or 'content' # # If you are using a 3rd Party SEF or the Core SEF solution # uncomment all of the lines in the '3rd Party or Core SEF' section # #####################################################

URL REWRINTING sous JOOMLA

5/19

Jb BURIN

##### SOLVING PROBLEMS WITH COMPONENT URL's that don't work ##### # SPECIAL NOTE FOR SMF USERS WHEN SMF IS INTEGRATED AND BRIDGED # OR ANY SITUATION WHERE A COMPONENT's URL's AREN't WORKING # # In both the 'Standard SEF', and '3rd Party or Core SEF' sections the line: # RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes## # May need to be uncommented. If you are running your Joomla/Mambo from # a subdirectory the name of the subdirectory will need to be inserted into this # line. For example, if your Joomla/Mambo is in a subdirectory called '/test/', # change this: # RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes## # to this: # RewriteCond %{REQUEST_URI} ^(/test/component/option,com) [NC,OR] ##optional see notes## # ##################################################### ## Can be commented out if causes errors, see notes above. Options FollowSymLinks # #

mod_rewrite in use

RewriteEngine On # # #

Uncomment following line if your webserver's URL is not directly related to physical file paths. Update Your Joomla/MamboDirectory (just / for root)

# RewriteBase / ########## Begin Standard SEF Section ## ALL (RewriteCond) lines in this section are only required if you actually ## have directories named 'content' or 'component' on your server ## If you do not have directories with these names, comment them out. # #RewriteCond %{REQUEST_FILENAME} !-f #RewriteCond %{REQUEST_FILENAME} !-d #RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes## #RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC] #RewriteRule ^(content/|component/) index.php # ########## End Standard SEF Section ########## Begin 3rd Party or Core SEF Section # #RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes## RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule (.*) index.php # ########## End 3rd Party or Core SEF Section

URL REWRINTING sous JOOMLA

6/19

Jb BURIN



Particularité sous OVH

Petite exception !!! (qui casse tout le site) POUR LES SERVEUR SOUS OVH, le .htaccess doit être sous cette forme sinon vos liens ne seront pas reconnu (ce qui est dommage et dommageable..) :

##

# Special OVH ## SetEnv REGISTER_GLOBALS 0 SetEnv MAGIC_QUOTES 1 ## # @version $Id: htaccess.txt 5973 2006-12-11 01:26:33Z robs $ # @package Joomla # @copyright Copyright (C) 2005 Open Source Matters. All rights reserved. # @license http://www.gnu.org/copyleft/gpl.html GNU/GPL # Joomla! is Free Software ## ##################################################### # READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE # # The line just below this section: 'Options +FollowSymLinks' may cause problems # with some server configurations. It is required for use of mod_rewrite, but may already # be set by your server administrator in a way that dissallows changing it in # your .htaccess file. If using it causes your server to error out, comment it out (add # to # beginning of line), reload your site in your browser and test your sef url's. If they work, # it has been set by your server administrator and you do not need it set here. # # Only use one of the two SEF sections that follow. Lines that can be uncommented # (and thus used) have only one #. Lines with two #'s should not be uncommented # In the section that you don't use, all lines should start with # # # For Standard SEF, use the standard SEF section. You can comment out # all of the RewriteCond lines and reduce your server's load if you # don't have directories in your root named 'component' or 'content' # # If you are using a 3rd Party SEF or the Core SEF solution # uncomment all of the lines in the '3rd Party or Core SEF' section # ##################################################### ##### SOLVING PROBLEMS WITH COMPONENT URL's that don't work ##### # SPECIAL NOTE FOR SMF USERS WHEN SMF IS INTEGRATED AND BRIDGED # OR ANY SITUATION WHERE A COMPONENT's URL's AREN't WORKING # # In both the 'Standard SEF', and '3rd Party or Core SEF' sections the line: # RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes## # May need to be uncommented. If you are running your Joomla!/Mambo from

URL REWRINTING sous JOOMLA

7/19

Jb BURIN

# a subdirectory the name of the subdirectory will need to be inserted into this # line. For example, if your Joomla!/Mambo is in a subdirectory called '/test/', # change this: # RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes## # to this: # RewriteCond %{REQUEST_URI} ^(/test/component/option,com) [NC,OR] ##optional - see notes## # ##################################################### ## Can be commented out if causes errors, see notes above. Options +FollowSymLinks # # mod_rewrite in use RewriteEngine On # Uncomment following line if your webserver's URL # is not directly related to physical file paths. # Update Your Joomla!/MamboDirectory (just / for root) # RewriteBase / ########## Begin - Joomla! core SEF Section ############# Use this section if using ONLY Joomla! core SEF ## ALL (RewriteCond) lines in this section are only required if you actually ## have directories named 'content' or 'component' on your server ## If you do not have directories with these names, comment them out. # # RewriteCond %{REQUEST_FILENAME} !-f # RewriteCond %{REQUEST_FILENAME} !-d #RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes## # RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC] # RewriteRule ^(content/|component/) index.php # ########## End - Joomla! core SEF Section ########## Begin - 3rd Party SEF Section ############# Use this section if you are using a 3rd party (Non Joomla! core) SEF extension - e.g. OpenSEF, 404_SEF, 404SEFx, SEF Advance, etc # RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes## RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule (.*) index.php # ########## End - 3rd Party SEF Section ########## Begin - Rewrite rules to block out some common exploits ## If you experience problems on your site block out the operations listed below ## This attempts to block the most common type of exploit `attempts` to Joomla! # # Block out any script trying to set a mosConfig value through the URL RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR] # Block out any script trying to base64_encode crap to send via URL RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR] # Block out any script that includes a <script> tag in URL RewriteCond %{QUERY_STRING} (\|%3E) [NC,OR] # Block out any script trying to set a PHP GLOBALS variable via URL

URL REWRINTING sous JOOMLA

8/19

Jb BURIN

RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR] # Block out any script trying to modify a _REQUEST variable via URL RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2}) # Send all blocked request to homepage with 403 Forbidden error! RewriteRule ^(.*)$ index.php [F,L] # ########## End - Rewrite rules to block out some common exploits



Particularité sous Free.fr

Particularité sous Free.fr où l'utilisation du .htaccess est limitée ! Créez un .htaccess avec dedans ErrorDocument 404 /index.php sur une seule ligne ! Activez ensuite dans la configuration globale du site le SEF et ignorez le message d'alerte du htaccess. (voir première partie) vous aurez des liens de la forme : http://domaine.com/numéro_section/numéro_article Ensuite activez le composant 404SEFx pour avoir des liens encore plus propres ! N'oubliez pas pour le référencement de rajouter au début de votre index.php de votre template le code : header("Status: 200 OK", false, 200);

URL REWRINTING sous JOOMLA

9/19

Jb BURIN

4. 3ème ETAPE : Vérification du bon fonctionnement Une fois le .htaccess mis sur le serveur, retournez sur votre site et vérifiez. Si les URLs ont changés de forme, c'est tout bon !! Sinon, c'est que vous avez oublié quelque chose ou que votre configuration n'est pas la même qu'une citée au dessus. N'hésitez pas à consulter la documentation de 404SEFx pour pallier à ce souci. La documentation est jointe en annexe (par contre c'est en anglais..) Vous pourrez optimiser vos URLs ici : (par exemples nom de l'extension, caractères des espaces, ect ...)

Il se peut que certains liens n'ont pas été réécris. (car ils ont été écris en dur dans l'index du template avant la réécriture par exemple..) Il est donc possible de le faire manuellement en cliquant ici :

Créez en un nouveau de cette façon :

Dans Old Non-Sef Url, vous mettez le lien qui n'a pas été modifié Et dans new SEF Url, le nom du lien que vous voulez voir apparaître. Enregistrez : le lien apparaitra dans :

URL REWRINTING sous JOOMLA

10/19

Jb BURIN

Testez votre nouveau lien sur votre site en vérifiant que les 2 contenus sont les mêmes. Sauvegardez et faites cela manuellement pour chacun des liens qui n'ont pas été réécris.

URL REWRINTING sous JOOMLA

11/19

Jb BURIN

5. CONCLUSION et REMERCIEMENTS J'espère que ce tutorial, qui est condensé de beaucoup de choses vue en vracs, va vous être utiles et vous permettre de réécrire vos URLs facilement et rapidement. Je remercie donc au passage la communauté Joomla pour le flux d'informations que j'ai pu trouver sur ses forums et exploitée afin de rédiger cette article. Et je remercie aussi Monsieur Pascal Prévot sans qui je n'aurais jamais écris ce tutorial ;) Bonne continuation à tous dans vos développements et réécritures d'URLs ! (Si vous avez des questions, vous pouvez visiter mon site web : http://jb.burin.free.fr)

URL REWRINTING sous JOOMLA

12/19

Jb BURIN

6. Annexe : documentation de 404SEFx Introduction I will attempt to give some tips on using 404SEFx here. You can view this documentation again by selecting the '404SEFx Documentation' button from the 404SEFx Control Panel.

Installation Instructions You can view installation instructions below by clicking the appropriate arrow. If your .htaccess file was set as writable the install may have updated it already and you shouldn't have to worry about it. If your site is in a subdirectory be sure to change the RewriteBase line accordingly. ex/ RewriteBase /joomla •

Installation 1. Upload the zip file to Joomla/Mambo using the component installer in the usual way. 2. For apache, set your ".htaccess" file like this: ## # @version $Id: htaccess.txt 2368 2006-02-14 17:40:02Z stingrey $ # @package Joomla # @copyright Copyright (C) 2005 Open Source Matters. All rights reserved. # @license http://www.gnu.org/copyleft/gpl.html GNU/GPL # Joomla! is Free Software ## ##################################################### # READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE # # The line just below this section: 'Options FollowSymLinks' may cause problems # with some server configurations. It is required for use of mod_rewrite, but may already # be set by your server administrator in a way that dissallows changing it in # your .htaccess file. If using it causes your server to error out, comment it out (add # to # beginning of line), reload your site in your browser and test your sef url's. If they work, # it has been set by your server administrator and you do not need it set here. # # Only use one of the two SEF sections that follow. Lines that can be uncommented # (and thus used) have only one #. Lines with two #'s should not be uncommented # In the section that you don't use, all lines should start with # # # For Standard SEF, use the standard SEF section. You can

URL REWRINTING sous JOOMLA

13/19

Jb BURIN

comment out # all of the RewriteCond lines and reduce your server's load if you # don't have directories in your root named 'component' or 'content' # # If you are using a 3rd Party SEF or the Core SEF solution # uncomment all of the lines in the '3rd Party or Core SEF' section # ##################################################### ##### SOLVING PROBLEMS WITH COMPONENT URL's that don't work ##### # SPECIAL NOTE FOR SMF USERS WHEN SMF IS INTEGRATED AND BRIDGED # OR ANY SITUATION WHERE A COMPONENT's URL's AREN't WORKING # # In both the 'Standard SEF', and '3rd Party or Core SEF' sections the line: # RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes## # May need to be uncommented. If you are running your Joomla/ Mambo from # a subdirectory the name of the subdirectory will need to be inserted into this # line. For example, if your Joomla/Mambo is in a subdirectory called '/test/', # change this: # RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes## # to this: # RewriteCond %{REQUEST_URI} ^(/test/component/option,com) [NC,OR] ##optional - see notes## # ##################################################### ## Can be commented out if causes errors, see notes above. Options FollowSymLinks # #

mod_rewrite in use

RewriteEngine On # # #

Uncomment following line if your webserver's URL is not directly related to physical file paths. Update Your Joomla/MamboDirectory (just / for root)

# RewriteBase / ########## Begin Standard SEF Section ## ALL (RewriteCond) lines in this section are only required if you actually ## have directories named 'content' or 'component' on your server ## If you do not have directories with these names, comment them out.

URL REWRINTING sous JOOMLA

14/19

Jb BURIN

# #RewriteCond %{REQUEST_FILENAME} !-f #RewriteCond %{REQUEST_FILENAME} !-d #RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes## #RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC] #RewriteRule ^(content/|component/) index.php # ########## End Standard SEF Section ########## Begin 3rd Party or Core SEF Section # #RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes## RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule (.*) index.php # ########## End 3rd Party or Core SEF Section

3. For IIS, see Configuring IIS.. 4. Ensure that SEF is enabled under Global Configuration in the Joomla/Mambo backend. 5. Edit the 404 SEF configuration, Change Enable to yes and save. This is neccessary to ensure the default 404 document gets saved to the Joomla/Mambo database. •

Configuring IIS 1. Install ActiveScript After installing PHP, you should download the ActiveScript DLL (php4activescript.dll) and place it in the main PHP folder (e.g. C:\php). After having all the files needed, you must register the DLL on your system. To achieve this, open a Command Prompt window (located in the Start Menu). Then go to your PHP directory by typing something like cd C:\php. To register the DLL just type regsvr32 php4activescript.dll

2. Install .NET framework 1.1 To the best of my limited knowledge of IIS, this is required for web.config to work, so install it 3. Create/Modify web.config NOTE: in the example below, Joomla/Mambo is installed in the virtual directory 'mambo' Create C:\Inetpub\wwwroot\web.config and add the content below:

URL REWRINTING sous JOOMLA

15/19

Jb BURIN



4. Configure the Custom Errors NOTE: in the example below, Joomla/Mambo is installed in the virtual directory Joomla/Mambo Using the Internet Services Manager, right-click the directory in which Joomla/Mambo is installed. Select properties >> Custom Error set the 404 to URL:/mambo/index.php set the 405 to URL:/mambo/index.php



Uninstall 1. Uninstall the component using the component unistaller in the usual way. 2. For apache, set your ".htaccess" like this : ## # @version $Id: htaccess.txt 2368 2006-02-14 17:40:02Z stingrey $ # @package Joomla # @copyright Copyright (C) 2005 Open Source Matters. All rights reserved. # @license http://www.gnu.org/copyleft/gpl.html GNU/GPL # Joomla! is Free Software ## ##################################################### # READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE # # The line just below this section: 'Options FollowSymLinks' may cause problems # with some server configurations. It is required for use of mod_rewrite, but may already # be set by your server administrator in a way that dissallows changing it in # your .htaccess file. If using it causes your server to error out, comment it out (add # to # beginning of line), reload your site in your browser and test your sef url's. If they work, # it has been set by your server administrator and you do not need it set here. # # Only use one of the two SEF sections that follow. Lines that can be uncommented # (and thus used) have only one #. Lines with two #'s should not be uncommented # In the section that you don't use, all lines should start with # # # For Standard SEF, use the standard SEF section. You can

URL REWRINTING sous JOOMLA

16/19

Jb BURIN

comment out # all of the RewriteCond lines and reduce your server's load if you # don't have directories in your root named 'component' or 'content' # # If you are using a 3rd Party SEF or the Core SEF solution # uncomment all of the lines in the '3rd Party or Core SEF' section # ##################################################### ##### SOLVING PROBLEMS WITH COMPONENT URL's that don't work ##### # SPECIAL NOTE FOR SMF USERS WHEN SMF IS INTEGRATED AND BRIDGED # OR ANY SITUATION WHERE A COMPONENT's URL's AREN't WORKING # # In both the 'Standard SEF', and '3rd Party or Core SEF' sections the line: # RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes## # May need to be uncommented. If you are running your Joomla/ Mambo from # a subdirectory the name of the subdirectory will need to be inserted into this # line. For example, if your Joomla/Mambo is in a subdirectory called '/test/', # change this: # RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes## # to this: # RewriteCond %{REQUEST_URI} ^(/test/component/option,com) [NC,OR] ##optional - see notes## # ##################################################### ## Can be commented out if causes errors, see notes above. Options FollowSymLinks # #

mod_rewrite in use

RewriteEngine On # # #

Uncomment following line if your webserver's URL is not directly related to physical file paths. Update Your Joomla/MamboDirectory (just / for root)

# RewriteBase / ########## Begin Standard SEF Section ## ALL (RewriteCond) lines in this section are only required if you actually ## have directories named 'content' or 'component' on your server ## If you do not have directories with these names, comment them out.

URL REWRINTING sous JOOMLA

17/19

Jb BURIN

# RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d #RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes## RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC] RewriteRule ^(content/|component/) index.php # ########## End Standard SEF Section ########## Begin 3rd Party or Core SEF Section # #RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes## #RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC] #RewriteCond %{REQUEST_FILENAME} !-f #RewriteCond %{REQUEST_FILENAME} !-d #RewriteRule (.*) index.php # ########## End 3rd Party or Core SEF Section

3. For IIS, remove C:\Inetpub\wwwroot\web.config and the Custom Errors you created with the Internet Services Manager

Useful Tips For Using 404SEFx Configuration Using the 404SEFx configuration is fairly straight forward. For more information on each item hover your mouse over the blue (i) images when you are in the configuration screen. When you save the configuration it will remove all your URL's from the database. If you have a high traffic site it may be wise to put it offline before saving the 404SEFx config or purging the database and go and browse your site starting at the main page. This will create the URL's properly for you and prevent numbers from being added to the ends of URL's people were browsing that changed. You may want to purge the 404 log before creating fresh urls. Modifying URL's You can modify URL's to your liking. Go into the 404SEFx Control Panel and click ' View/Edit SEF Urls'. Select the URL you wish to modify. If you click the check box labeled 'Save as Custom Redirect' it will place this URL into the 'Custom Redirect' area which you can navigate to from the 404SEFx Control Panel. When you click 'View/Edit Custom Redirects' you will see your URL in here now instead. These urls will not be removed when you save the config. You can modify these and save them as you wish. This is particularly useful if you are updating from an old site because any URL's that are no longer availble will be logged. You can view these URL's by clicking 'View/Edit 404 Logs' in the 404SEFx URL REWRINTING sous JOOMLA

18/19

Jb BURIN

Control Panel. You can redirect visitors to the new page by selecting the URL you wish to modify and entering the new url. Note: The ability to enter non-Joomla! URL's into this area is coming soon! This will allow you to easily transfer a non-Joomla! site to Joomla using 404SEFx and any of your old URL's will be redirected to the new page within Joomla!. Backing up your URL's It is recommended to backup your database before doing this. You can also import and export URL's from the Custom Redirect area. To do this click the 'Import/Export Custom URLS' link above the table of URL's. To backup your URL's click the 'Backup Custom URLS' button and you will be presented with a file named '404SEFx_custom_urls.sql' to download. If you want to import your urls browse to the file and click the 'Import Custom URLS' button.

URL REWRINTING sous JOOMLA

19/19

Jb BURIN