This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

How to list categories on frontpage site menu?


avatar
wll6568 0
From: -
How to list categories on frontpage site menu?

I am wanting to list down the categories on the site menu, like this site is doing (www.selfseo.com), but how to do that?

Also, how to use mod_rewrite? I am trying to do smth like, renaming the category name to category-name.php, and article name to be article-name.php. I searched the forum about mod_rewrite, but they said look for htaccess file in extra folder, but I cant find the file in the extra folder.

Thanks.

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


1 Re: How to list categories on frontpage site menu?
avatar
Administrator
1342
From: Austria
How to list categories on frontpage site menu?

I am wanting to list down the categories on the site menu, like this site is doing (www.selfseo.com), but how to do that?

You could add the list manually as part of your layout. Take a look at the site_header and site_footer templates.

Also, how to use mod_rewrite? I am trying to do smth like, renaming the category name to category-name.php, and article name to be article-name.php. I searched the forum about mod_rewrite, but they said look for htaccess file in extra folder, but I cant find the file in the extra folder.

See this thread: http://www.esselbach.com/thread.php?id=320

A complete .htaccess would look like this one:

RewriteEngine On 


RewriteRule ^index.html$ /index.php

RewriteRule ^(.*)_s([0-9]+).html$ /story.php?id=$2
RewriteRule ^(.*)_p([0-9]+).html$ /printer.php?id=$2

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.