• [Mod] Search Engine Friendly URLs aka Short URLs 3 0 5 1
Currently:  

Author Topic: [Mod] Search Engine Friendly URLs aka Short URLs  (Read 730012 times)

0 Members and 3 Guests are viewing this topic.

Offline 2dartist.com

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #285 on: May 11, 2006, 04:27:49 PM »
Well it helps from SEO point of view and that I am saying from my experience. Crawlers/bots of famous search engine put more emphaysis on frequently updated static pages because they take them as if a human being is working on them instead of a database. A url with keyword is just more helpful because it adds even more weight to have them beleive that there is some human factor involved in the creation of this page so it gets better page ranking.

(Just to help you understand this more, my webmaster forum has the word "trade" in the domain and the forum is also in a folder "trade". Now even if the content and keywords and title has nothing to do with the forex or futurus trade or stock market, google still show those type of ads all over. So at leaset google gives much importance to the url itself and think of my webmaster forum as if it is a forum for trading and stock market just due to the word trade in the url.)

Offline himu

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
    • Point Of View

Offline lukasinoooo

  • Newbie
  • *
  • Posts: 32
    • View Profile
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #287 on: May 14, 2006, 12:59:14 AM »
Work good but when i login i have error


DB Error: Bad SQL Query: SELECT lightbox_id, lightbox_name, lightbox_image_ids, lightbox_private, id, lightbox_lastaction, IF(id = , id, 0) AS num FROM 4images_lightboxes WHERE user_id = 1 ORDER BY id ASC
Something is wrong in your syntax obok ' id, 0) AS num FROM 4images_lightboxes ' w linii 1

DB Error: Bad SQL Query: UPDATE 4images_users SET user_lightbox = 0 WHERE user_id = 1
Nieznana kolumna 'user_lightbox' w field list

Warning: Cannot modify header information - headers already sent by (output started at c:\usr\apache\httpd\html\3\includes\db_mysql.php:188) in c:\usr\apache\httpd\html\3\includes\sessions.php on line 92

Warning: Cannot modify header information - headers already sent by (output started at c:\usr\apache\httpd\html\3\includes\db_mysql.php:188) in c:\usr\apache\httpd\html\3\includes\sessions.php on line 92

Warning: Cannot modify header information - headers already sent by (output started at c:\usr\apache\httpd\html\3\includes\db_mysql.php:188) in c:\usr\apache\httpd\html\3\login.php on line 51

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #288 on: May 14, 2006, 02:09:36 AM »
and this start happening after you installed this mod? - doubtfull...
check changes from this mod instead:
http://www.4homepages.de/forum/index.php?topic=10625.0
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline sigma.

  • Full Member
  • ***
  • Posts: 148
  • cydonian.com/potd
    • View Profile
    • sigma's gallery
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #289 on: May 15, 2006, 08:19:29 PM »
when navifating through your site, I´ve seen that you have even cooler URLs...

instead of
http://gallery.vano.org/en/11991.htm
you have
http://gallery.vano.org/en/11991

How is this done?
Also the language URL is done in cool style ...
Will the mod do that also like in your site?

Regards, and thanks.
Daniel

sorry, that method would require alot more changes in many .php files and require very complex .htaccess
but u could try remove .htm from sessions.php and adjust .htaccess

> V@no

Could you please let us in on your workaround for this? I dont need this for every link, just the menu items like Memberlist, Top Images, New Images, ect.. also i noticed on yoru site you have a Google Map setup, I have done the same but im restricted to how I can use it and I think if I had a link like this http://www.cydonian.com/photos/gmap insted of my current setup http://www.cydonian.com/photos/index.php?template=gmap then the google map would be a bit more interactive and user friendly.

This would really help the 4images engine I think. Not to mention my little dilemma. If you have any ideas that might help me toher than the top request please let me know.

Offline Malcolm Feth

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #290 on: May 15, 2006, 08:34:33 PM »
i have problem with IE browser

when i'm entering to one (only in this one category problem exists)
the browser looks like been reloading page a few times... and finally get error "could not open page"

what is the problem ?

ps,. if you want to try, enter:
http://www.honda-crx.info/galeria
and then find category: Wasze CRXy (2030)
subcategory: CRX 88-92 Druga Generacja

and of course open page with IE :)
Malcolm Feth
http://www.honda-crx.info - CRXPage - The CRX HomePage

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #291 on: May 16, 2006, 01:00:43 AM »
@sigma:
in sessions.php replace
Code: [Select]
      if (strstr($url, 'index.php')) {
        $url = str_replace('index.php', './', $url);
      }
With:
Code: [Select]
      if (strstr($url, 'index.php')) {
        if (strstr($url, 'template=')) {
          preg_match('#template=([0-9a-zA-Z_-]+)&?#', $url, $matches);
          if (isset($matches[1])) {
            $split = explode('?', $url);
            $url = $split[0];
            $query = @$split[1];
            $url   = str_replace('index.php', 'page-'.$matches[1].'.htm', $url);
            $query = str_replace('template='.$matches[1].'&', '', $query);
            $query = str_replace('&template='.$matches[1], '', $query);
            $query = str_replace('template='.$matches[1], '', $query);
            if (!empty($query)) {
              $url .= '?' . $query;
            }
          }
        }
        else {
          $url = str_replace('index.php', './', $url);
        }
      }

And in .htaccess add:
Code: [Select]
RewriteRule ^page-(.+)\.htm$ index.php?template=$1&%{QUERY_STRING}

@Malcolm Feth:
nothing to do with this mod. It seems its the way IE renders your page...
« Last Edit: May 16, 2006, 01:17:57 AM by V@no »
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline sigma.

  • Full Member
  • ***
  • Posts: 148
  • cydonian.com/potd
    • View Profile
    • sigma's gallery
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #292 on: May 16, 2006, 01:48:16 AM »
Thanks for the response v@no. unfortunately that didnt seem to do anything.

Is there a way I can test it?

Tried
http://www.cydonian.com/photos/memberlist

Insted of
http://www.cydonian.com/photos/memberlist.php

but i get the good ol' 404 error.

maybe i have to place the .htaccess add somewhere specific in the file? top or bottom?


Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #293 on: May 16, 2006, 02:18:04 AM »
Ops, i forgot to mention, that to avoid any problems with real html files in your gallery root, I've added page- prefix to the filenames.
so in your case its page-gmap.htm
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline sigma.

  • Full Member
  • ***
  • Posts: 148
  • cydonian.com/potd
    • View Profile
    • sigma's gallery
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #294 on: May 16, 2006, 02:35:45 AM »
ah interesting. ok so i change page- to view- but it looks like some .php files wont convert, thats fine. It was really only for the gmap iframe taht i have implemented. Thanks Vano. If i have anymore questions on this I will PM you, hope thats ok. Just dont want to add to an already massive thread. Plus other people with questions.

Offline Malcolm Feth

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #295 on: May 16, 2006, 08:48:32 PM »
i was trying to do something with my problem

when i moved a few subcategories, the problem with opening main category doesn't exists.
Malcolm Feth
http://www.honda-crx.info - CRXPage - The CRX HomePage

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #296 on: May 16, 2006, 11:37:54 PM »
Malcolm Feth sorry, but I dont understand what is the problem.
Please explain in details and step-by-step how to reproduce it or how to see it in action.

P.S. are you sure this has anything to do with this mod?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Malcolm Feth

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #297 on: May 17, 2006, 08:48:25 AM »
www.honda-crx.info/galeria
find category named: Wasze CRXy (but do not enter in)
enter to subcategory: CRX 88-92 Druga Generacja

under IE - page reloads - all the time

and if i enter (thru admin panel) to "old style" adres (http://www.honda-crx.info/galeria/categories.php?cat_id=40)
page works great
Malcolm Feth
http://www.honda-crx.info - CRXPage - The CRX HomePage

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #298 on: May 17, 2006, 02:37:26 PM »
Sorry, couldnt reproduce it, the page did not refresh for me... it opens instantly without any refresh...
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Malcolm Feth

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #299 on: May 17, 2006, 03:02:50 PM »
from main page of gallery i'm entering "88-92 druga generacja" subdirecroty of "Wasze CRXy"
and i have something like refreshing.. i have this thing on a few computers and only under Internet Explorer
Malcolm Feth
http://www.honda-crx.info - CRXPage - The CRX HomePage