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

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

0 Members and 2 Guests are viewing this topic.

Offline idijotaz

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
    • CLON Entertainment
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #315 on: July 02, 2006, 11:34:27 AM »
After mod installation, is it possible to show images with old adress and new? becouse i need a little old links. And what link should be if ussing multi lang for all names?  :lol:

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 #316 on: July 02, 2006, 11:43:01 AM »
yes, the "old way" will stay intact
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 idijotaz

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
    • CLON Entertainment
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #317 on: July 02, 2006, 03:10:25 PM »
Ok installed.. but how to make paging like in vano site? /cat1.2? and how to make dont show that .html like in vano site?  :roll:
and how u make language in /en/page?
« Last Edit: July 02, 2006, 03:20:31 PM by idijotaz »

Offline unite

  • Newbie
  • *
  • Posts: 48
    • View Profile
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #318 on: July 06, 2006, 08:54:41 AM »
Works  Perfect, thank you...   www.vistawallpapers.ws

Offline KimmyMarie

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #319 on: July 10, 2006, 04:54:26 PM »
Hey people,

I've noticed a lot of you have asked a way to completely remove sessionid's, as google DOES NOT like it.

Just add this somewhere in your .htaccess:

Code: [Select]
php_value session.use_cookies 1
php_value session.use_only_cookies 1
php_value session.use_trans_sid 0

Just add it at the very end of your .htaccess (for instance), and session id's are gone for good :D

getting internal server error 500  :(
Can you show your htaccess file here (or PM it to me if you don't want it out in public)


I tried this and I also get "500 Internal Server Error error"


The only lines in my .htacess are:

php_value session.use_cookies 1
php_value session.use_only_cookies 1
php_value session.use_trans_sid 0



Could this be my server not allowing me to include that code?



Thanks,
Kim

Offline unite

  • Newbie
  • *
  • Posts: 48
    • View Profile
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #320 on: July 11, 2006, 05:23:08 PM »
Ok found a little problem. I run a box with ENSIM on it so when you go to www.vistawallpapers.ws/admin it brings you to the admin ensim CP of the site. Well when you login to the 4homepages CP (site cp) and try to edit a wallpaper it tries to go to www.vistawallpapers.ws/admin and not the edit image area in the scripts CP. I know I have fixed this before on other VB installs but I dont know where to change the code to fix this in 4homepages script.

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 #321 on: July 12, 2006, 01:05:34 AM »
and where the actual link pointed to? if its pointed to www.vistawallpapers.ws/admin instead of to www.vistawallpapers.ws/admin/images.php?action=blah then most probably its due to some other changes you made to the code, cause with original code all links in ACP will stay the same as without the 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 unite

  • Newbie
  • *
  • Posts: 48
    • View Profile
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #322 on: July 12, 2006, 10:17:36 PM »
and where the actual link pointed to? if its pointed to www.vistawallpapers.ws/admin instead of to www.vistawallpapers.ws/admin/images.php?action=blah then most probably its due to some other changes you made to the code, cause with original code all links in ACP will stay the same as without the mod.

Its pointing to this addy...
http://www.vistawallpapers.ws/admin/?goto=images.php
It works if you go to http://www.vistawallpapers.ws/admin/images.php

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 #323 on: July 13, 2006, 01:24:00 AM »
Is this with the original code (mod) or you've changed something?
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 unite

  • Newbie
  • *
  • Posts: 48
    • View Profile
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #324 on: July 13, 2006, 04:15:55 AM »
I havent changed anything other than add this mod.

Offline idijotaz

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
    • CLON Entertainment
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #325 on: July 15, 2006, 07:43:22 PM »
Ok installed.. but how to make paging like in vano site? /cat1.2? and how to make dont show that .html like in vano site?  :roll:
and how u make language in /en/page?
anybody can help me?  :lol:

Offline live@ct

  • Sr. Member
  • ****
  • Posts: 348
    • View Profile
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #326 on: July 17, 2006, 05:38:37 PM »
Hi this script work excellent, now I have a problem  :( I bought another domain and I like to use like alias but I have an error with this script, I don't know why, but I cant see the images, only the simple and normal links, for example, newdomain.com/register.php, newdomain.com/details.php?image_id=1383 I can acces if i put the urls normaly without this cript,  newdomain.com/img1234.html using this script send me a file not found error

what changes I need to do, to make it work the short urls script in the new domain


thanks for your help
Existen 10 tipos de personas, los que entienden el codigo binario y los que no.

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 #327 on: July 18, 2006, 03:27:10 AM »
same server different domain? what is your setup?
what do the error logs say? if in the error logs say that /full/path/img1234.html not found that means either mod_rewrite is not installed/activated or your .htaccess not working properly...
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 live@ct

  • Sr. Member
  • ****
  • Posts: 348
    • View Profile
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #328 on: July 18, 2006, 07:54:00 AM »
it showme the default file not found server error
I think that its something with the rewrite mod because in my original domain all works propertly
Now if I enter to my site by the new alias domain the images and categories are not showing, only if I access normaly using de original url (details.php?image_id=1234)
and the single files like register.php. index.php?template=FAQ, and all the files that are not linked to the images and categories works propertly

this is mi htaccess code

#begin code
RewriteEngine On
#RewriteBase /
RewriteRule ^lightbox\.html$ lightbox.php?%{QUERY_STRING}
RewriteRule ^lightbox\.([0-9]+)\.html$ lightbox.php?page=$1&%{QUERY_STRING}

RewriteRule ^search\.html$ search.php?%{QUERY_STRING}
RewriteRule ^search\.([0-9]+)\.html$ search.php?page=$1&%{QUERY_STRING}

RewriteRule ^cat\.html$ categories.php?%{QUERY_STRING}
RewriteRule ^cat([0-9]+)\.([0-9]+)\.html$ categories.php?cat_id=$1&page=$2&%{QUERY_STRING}
RewriteRule ^cat([0-9]+)\.html$ categories.php?cat_id=$1&%{QUERY_STRING}

RewriteRule ^img([0-9]+)\.html$ details.php?image_id=$1&%{QUERY_STRING}
RewriteRule ^img([0-9]+)\.([a-zA-Z0-9]+)\.html$ details.php?image_id=$1&mode=$2&%{QUERY_STRING}

RewriteRule ^postcard([a-zA-Z0-9]+)\.html$ postcards.php?postcard_id=$1&%{QUERY_STRING}
RewriteRule ^postcard\.img([0-9]+)\.html$ postcards.php?image_id=$1&%{QUERY_STRING}

#end code


thanks for your help
Existen 10 tipos de personas, los que entienden el codigo binario y los que no.

Offline mass27

  • Pre-Newbie
  • Posts: 1
    • View Profile
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #329 on: July 25, 2006, 10:50:45 AM »
I'm trying to follow the guide at the first thread LINK HERE but couldn't find the code to replace. I searched for code starting [qcode]function url($url, $amp = "&") {
    global $l;
    $dummy_array = explode("#", $url);
    $url = $dummy_array[0];[/qcode] in includes/sessions.php but didn't find anymore in Version 1.7.3 (the latest version). Have the includes/sessions.php file changed in the latest version and if so could you please tell me how to MOD it to Search Engine Friendly URLs aka Short URLs?

Thank you in advance!