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

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

0 Members and 2 Guests are viewing this topic.

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 #30 on: April 03, 2005, 09:30:42 PM »
According to phpinfo from your page, your server is running IIS webserver which does not support .htaccess files, therefore this mod will not work for u.
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 marod0er

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #31 on: April 03, 2005, 09:42:39 PM »
I have the MOD working fine, but it still uses session id in the url.

EX:
I have an URL like this:
www.site.com/img1.htm?sessionid=3234235345345345345

How do I force 4images NOT to use session id's? I want to remove it, because search engines can't spider a site using session id.

Thanks.
Greetz: Lasse

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 #32 on: April 03, 2005, 10:04:39 PM »
How do I force 4images NOT to use session id's? I want to remove it, because search engines can't spider a site using session id.
4images is based on sessions, removing them might break 4images. also, most of modern search engines spiders dont care about sessionid, they ignoring them, so, u dont have to worry about it.
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 Vincent

  • 4images Moderator
  • Addicted member
  • *****
  • Posts: 1.195
    • View Profile
    • www.foto-kocher.com
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #33 on: April 03, 2005, 10:05:30 PM »
V@no
it seems you konw everithing!
thanks for the info

vincent
Beati pauperi spiritus

4images 1.7 // My Installed Mods


Offline marod0er

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #34 on: April 03, 2005, 10:09:35 PM »
Well, not exactly. Google has problems working around it.

The thing I don't understand, is I've never had this problem before. Why does it suddenly generate sessionid's on internal html links? Havn't experienced that before...

But nevermind messing something up, how do I remove those session id's?
Greetz: Lasse

Offline marod0er

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #35 on: April 04, 2005, 05:42:27 PM »
I'd appreciate a solution to this...

Thanks!
Greetz: Lasse

Offline marod0er

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #36 on: April 05, 2005, 03:47:03 PM »
Apparently it automatically adds the session id to every dynamic URL I have on my page.

Like, for instance:
I have a link script, which looks something like this: partners.php?type=out&id=2

4images automatically adds partners.php?type=out&id=2&sessionid=234825374165374blablablabla

This is bad. Can anyone pleeeeease help??

Thanks a lot!
Lasse
Greetz: Lasse

Offline omid4u

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #37 on: April 08, 2005, 11:15:58 AM »
I like change my URL similar to v@no gallery
www.example.com/xx  and xx= image id.
Please help me to understand this

Offline wildnis

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • http://www.hickerphoto.com
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #38 on: April 12, 2005, 01:13:43 AM »
Hi Chris,

I have a problem with the rewrite. If we use our search we get results ok, but when I click on a search pictures I get like:


http://www.hickerphoto.com/pictures_4396.search.html

How can I get rid of the .search.
the right output should be:

http://www.hickerphoto.com/pictures_4396.html

Can you help me there?? I get penalized by google for duplicated content - makes sense, they are both the same pictures

appreciate your help
thanks

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 #39 on: April 12, 2005, 01:40:03 AM »
replace:
Code: [Select]
            $url   = str_replace('details.php', 'img'.$matches1[1].'.'.$matches2[1].'.htm', $url);with:
Code: [Select]
            $url   = str_replace('details.php', 'img'.$matches1[1].(($matches2[1] != "search") ? '.'.$matches2[1] : "").'.htm', $url);but I must warn u, u will loose feature that displays previous/next image from the search result in the image details page.
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 wildnis

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • http://www.hickerphoto.com
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #40 on: April 12, 2005, 01:43:52 AM »
where??
in the search.php or htaccess

thanks again

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 #41 on: April 12, 2005, 01:47:47 AM »
ah, c'mon! think! ;)
open the first page and search for the line I mentioned...

*cough* sessions.php *cough*
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 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 #42 on: April 12, 2005, 01:50:06 AM »
or another alternative replace in search.php:
Code: [Select]
    show_image($image_row, "search");with:
Code: [Select]
    show_image($image_row);(I think this is better ;))
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 wildnis

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • http://www.hickerphoto.com
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #43 on: April 12, 2005, 02:01:25 AM »
Hi,
I used your tip with the search.php

it works!

thank you so much

you are gold!!!

Offline ascanio

  • Hero Member
  • *****
  • Posts: 569
    • View Profile
    • http://www.surfourspace.net
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #44 on: April 18, 2005, 06:45:40 AM »
Hi every one I'm trying to install this MOD But i'm having some problems

Code: [Select]
Not Found
The requested URL /home/ascanio/public_html/details.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.33 Server at 69.56.196.226 Port 80

I have read all the post but i'm not very familiar with the .htaccess can anybody help me?