Seite 1 von 1

SEO Links for Object Listviews (resolved)

Verfasst: So 22. Mai 2011, 12:01
von Michael_S
Could someone post a basic guide to the SEO Links set-up for Object Listviews or direct me to a German post and I will translate.

Thanks in advance,

Michael.

Re: SEO Links for Object Listviews (resolved)

Verfasst: So 22. Mai 2011, 14:34
von Michael_S
The instructions can be found here and are easy to follow for English speaking users:

http://forum.webedition.org/viewtopic.p ... ess#p60743

Michael.

Re: SEO Links for Object Listviews (resolved)

Verfasst: Mo 23. Mai 2011, 14:00
von Michael_S
Here's a basic guide on SEO links for webEdition 6.2 or above, before you start you will need a working Object listview with links to a detail page.

1. Create a .htaccess file and save this to the webroot (/.htaccess) by selecting /New/Other/.htaccess Document. Enter the following code and publish your new file:

Code: Alles auswählen

ErrorDocument 404 /webEdition/redirectSEOurls.php
2. create a 404.html or 404.php file in the webroot (/404.php), this can be a simple page or styled using your master template. You do not need to enter any special webEdition code in this page or template but you must enter the path to the file in the SEO links section of the webEdition preferences (Errorpage for not existing objects).

Code: Alles auswählen

<!DOCTYPE html>
<html>
<head>
	<title>404 Error Page</title>
</head>
<body>
<h1>Not Found (404)</h1>
</body>
</html>
3. In your Object listview include objectseourls and hidedirindex and set both to true.

Code: Alles auswählen

<we:listview type="object" classid="#" objectseourls="true" hidedirindex="true">
4. In your Class, click on the properties tab and edit the SEO-URL, if you are building a blog style site the following example would give you /YYYY/MM/Your-Title.

Creation Year (2011)
Directory separator
Creation Month
Directory separator
URL field 1 (64)

5. In your Class, click on the Edit tab and select the field you want to use for the pretty or descriptive part of the URL by clicking on the URL field 1 radio button. Save your Class.

6. Rebuild the Objects and test.