11
sudhaker
Re: SEO (Search Engine Optimization) In Action
  • 2005/8/29 5:47

  • sudhaker

  • Not too shy to talk

  • Posts: 117

  • Since: 2003/2/6 2


@carnuke

I learned few things from older short URL hack but did not like their ob_start approach. Also their huge regex replacemnet will add more to the server load.

My short URL hack is optimized and is very much module specific. I will be doing similar hack for other modules as well (which I will use for my sites - tinycontent, smartsection, smartfaq...etc). I will also try to convince module developer to merge this hack else I will maintain my own fork.

In the final shape, a constant defined in mainfile.php should change the behavior of any shortURL aware module. This will be able to serve regular URL and short URL both based on server's capability and webmaster's wish.

Entry in mainfile.php can be something like this:

define('XOOPS_SEO_ENABLED', 1);
Sudhaker Raj
............



12
sudhaker
Re: SEO (Search Engine Optimization) In Action
  • 2005/8/29 5:26

  • sudhaker

  • Not too shy to talk

  • Posts: 117

  • Since: 2003/2/6 2


@ LazyBadger - You are right about parameterized URL. My mistake.

Robots treat h1 and h2 tags with higher preference than other tags, isn’t it? Page title is having even higher preference. So what if we have keywords in URL itself?

My feeling is that, having

http://thej2ee.com/software.cat.130/web-frameworks.html
http://thej2ee.com/software.link.1488/struts.html

is always better than

http://thej2ee.com/software.cat.130/
http://thej2ee.com/software.link.1488/

which is better than

http://thej2ee.com/software/cat/130/
http://thej2ee.com/software/link/1488/

which is better than

http://thej2ee.com/module/software/viewcat.php?cid=130
http://thej2ee.com/module/software/singlelink.php?lid=1488

Will do some more research to find out the truth. Also, I should see results in few weeks.
Sudhaker Raj
............



13
sudhaker
Re: SEO (Search Engine Optimization) In Action
  • 2005/8/29 4:15

  • sudhaker

  • Not too shy to talk

  • Posts: 117

  • Since: 2003/2/6 2


Good question. I don't have definite answer to this, but google obviously don't like to index URLs like these,

http://site/some.php?id=1
http://site/some.php?id=2
http://site/some.php?id=3
http://site/some.php?id=4

Also when struts word is present in URL, it should have better SE ranking than having it somewhere only on pages. I re-launched this site this weekend itself and should see result in few weeks.
Sudhaker Raj
............



14
sudhaker
Re: SEO (Search Engine Optimization) In Action
  • 2005/8/29 4:02

  • sudhaker

  • Not too shy to talk

  • Posts: 117

  • Since: 2003/2/6 2


I did modify the code to make it 'mylinks' SE friendly and clonned it with 'software' name.
Sudhaker Raj
............



15
sudhaker
Re: Thanks for your help
  • 2005/8/29 3:18

  • sudhaker

  • Not too shy to talk

  • Posts: 117

  • Since: 2003/2/6 2


People who get too much greedy and google ban them.
Sudhaker Raj
............



16
sudhaker
SEO (Search Engine Optimization) In Action
  • 2005/8/28 22:03

  • sudhaker

  • Not too shy to talk

  • Posts: 117

  • Since: 2003/2/6 2


Hi Xoopser,

SEO is in action at my sitehttp://thej2ee.com It is a great to have feature for XOOPS community and I'm sure that everyone will like to see its support in the CORE.

I found one hack, which was doing ob_start and huge regex replacement to generate URL likehttp://thej2ee.com/software/cat/130/ . This approach lack in putting related words in URL itself.

So I worked on cloned module to get more SE attention. And now it is generating URLs like

http://thej2ee.com/software.cat.130/web-frameworks.html
http://thej2ee.com/software.link.1488/struts.html

The base software module was a perfect clone of mylinks as mentioned herehttp://xoops.biz/x7/modules/myhacks/index.php?id=3 .

For "code junkies", I am listing the highlights.

function software_sefriedly_url($id$type$title="") {
        
$words preg_split('/[^0-9a-z]+/'strtolower($title));
        return 
XOOPS_URL."/software.$type.$id/".implode($words'-').'.html';
}


and

/.htaccess
RewriteEngine   On
RewriteBase     
/
RewriteRule     ^software.link.([0-9]+)/     software.php?lid=$1
RewriteRule     
^software.cat.([0-9]+)/      software.php?cid=$1


and

/software.php
<?php

$newUrl 
'modules/software/index.php';
if (
is_numeric($_GET['lid'])) {
    
$newUrl 'modules/software/singlelink.php';
} else 
if (
is_numeric($_GET['cid'])) {
    
$newUrl 'modules/software/viewcat.php';
}

$PHP_SELF '/'.$newUrl;

$_ENV['PHP_SELF'] = $PHP_SELF;
        
$_SERVER['SCRIPT_NAME'] = $PHP_SELF;
$_SERVER['PHP_SELF'] = $PHP_SELF;

$_SERVER['REQUEST_URI'] = $PHP_SELF '?' $_SERVER['QUERY_STRING'];

chdir(dirname($newUrl));
include(
$newUrl);

exit;
?>
Sudhaker Raj
............



17
sudhaker
Re: 2.2.3 create account bugs
  • 2005/8/28 6:49

  • sudhaker

  • Not too shy to talk

  • Posts: 117

  • Since: 2003/2/6 2


But as an Administrator, I should be able to change email address, no matter what is the system setting. Isn't it?
Sudhaker Raj
............



18
sudhaker
Re: 2.2.3 create account bugs
  • 2005/8/28 6:45

  • sudhaker

  • Not too shy to talk

  • Posts: 117

  • Since: 2003/2/6 2


Bug 3 is a feature. Go to Admin Panel >> Prefrences >> Extended Profiles >> General Settings and look for Allow users to change email address? and select Yes and Save it

Cheers,
Sudhaker Raj
............



19
sudhaker
Re: Anti-Spam Operation
  • 2005/6/17 20:39

  • sudhaker

  • Not too shy to talk

  • Posts: 117

  • Since: 2003/2/6 2


Why not human-verification using image with random text technique?



20
sudhaker
Re: Autologin for Xoops 2.0.x
  • 2005/6/7 20:45

  • sudhaker

  • Not too shy to talk

  • Posts: 117

  • Since: 2003/2/6 2


As mentioned by many people, storing MD5 in form of cookies may not be safe. The reason is similar why UNIX/LINUX systems have /etc/shadow file which is only readable by root. MD5 is one way hashing but not un-breakable.

Check some more pointers athttps://xoops.org/modules/smartfaq/faq.php?faqid=332

and

http://xoops.biz/x7/modules/myhacks/index.php?id=2

Cheers,




TopTop
« 1 (2) 3 4 5 ... 10 »



Login

Who's Online

169 user(s) are online (120 user(s) are browsing Support Forums)


Members: 0


Guests: 169


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits