View Full Version : Remove /index.1.html
berto
03-24-2008, 06:24 PM
I see apost regarding this not long ago but I can't seem to find it...
What I want to do is show categories with out the /index.1.html
www.mysite.com/category and not www.mysite.com/category/index.1.html
Thanks
kovacs
04-02-2008, 10:16 AM
You need to use .htaccess to accomplish this.
Something like this:
RewriteRule ^(.*)/index\.1\.(htm|html|php) http://www.yourdomain.com/$1/
(not tested! just a suggestion)
ahmedbekhit
05-24-2008, 02:13 AM
please how to convert
httP//yoursite.com/sports/
into
http://sports.yoursite.com
???????
northlandadv
05-24-2008, 05:32 AM
You'd have to create a subdomain to do this, and would have to be able to control how subdomains are assigned to directories. This is not something you can do from Vivvo.
ahmedbekhit
05-25-2008, 10:16 AM
ok thank you
quick2004
05-25-2008, 08:37 PM
You need to use .htaccess to accomplish this.
Something like this:
RewriteRule ^(.*)/index\.1\.(htm|html|php) http://www.yourdomain.com/$1/
(not tested! just a suggestion)
Thanks :D:D:D
quick2004
05-31-2008, 09:25 PM
I see apost regarding this not long ago but I can't seem to find it...
What I want to do is show categories with out the /index.1.html
www.mysite.com/category and not www.mysite.com/category/index.1.html
Thanks
You can change this in lib/vivvo/core/Categories.class.php function get_href in Categories class, just remove
$href_text .= 'index.1.html';
berto
10-25-2009, 01:35 AM
You can change this in lib/vivvo/core/Categories.class.php function get_href in Categories class, just remove
$href_text .= 'index.1.html';
And by doing so what happens when you browse to the categories page 2 for instance?
Q_Line
10-25-2009, 09:39 AM
And by doing so what happens when you browse to the categories page 2 for instance?
This is ok example... Works fine on my site :D
Stitche
06-01-2012, 11:18 AM
I see apost regarding this not long ago but I can't seem to find it...
What I want to do is show categories with out the /index.1.html
www.mysite.com/category and not www.mysite.com/category/index.1.html
Thanks
Please go to /lib/vivvo/core/Categories.class.php (version 4.5.x or above)
look at this line 496
function format_href(&$sm, $id, $pg = 1, $type = 'html') {
return make_proxied_url($sm->get_categories()->list[$id]->get_breadcrumb_href() . "index.$pg.$type");
}
and change to ......
function format_href(&$sm, $id, $pg = 1, $type = 'html') {
return make_proxied_url($sm->get_categories()->list[$id]->get_breadcrumb_href());
}
this should give you some idea
vBulletin® v3.8.4, Copyright ©2000-2013, Jelsoft Enterprises Ltd.