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

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

0 Members and 2 Guests are viewing this topic.

Offline IWS_steffen

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • Kreuzfahrtschiffe gestern und heute
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #360 on: October 16, 2006, 10:29:32 PM »
Hallo

hat jemand schon mal eine .htaccess auf einer Subdomain unterzubringen.

Bei der Hauptdomain kplappt es mit einer .htaccess (es liegt also nicht am Server)

Durch die umgebaute sessions.php zeigt der neue Pfad zwar super .htm an, aber es wird die Error 404 Seite gezeigt.

Vielleicht ein Tipp?


Gruß Steffen

Offline IWS_steffen

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • Kreuzfahrtschiffe gestern und heute
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #361 on: October 17, 2006, 06:11:30 PM »
Hallo,

mir wäre auch schon wirklich geholfen, wenn ich die Bilder in der detail.php nicht mit image_id sondern z.B. reisebericht_id abspeiern könnte.

In welcher php wird denn die image_id festgelegt?

Gruß Steffen

Offline amir

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #362 on: October 20, 2006, 09:30:41 AM »
Excellent Code.

Thanks So much friend!!

 :thumbup:

Offline adrianus

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #363 on: October 28, 2006, 02:39:52 PM »
Do you have 14th page SEF code working on your 1.7.3 or 1.7.4 ?

Still i can't have it working on 1.7.4 (it was ok on 1.7.1)

:(

AD

Offline live@ct

  • Sr. Member
  • ****
  • Posts: 348
    • View Profile
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #364 on: November 03, 2006, 06:46:53 AM »
Everything its working now!!  :D :D :D

The only thing that I like its to remove the img and image_id prefix and show only the image_name.html or remove the image_id to have img-image-name.html

I search page by page but i didnt found the code to change that
any one ?! :P
thanks for your help!!
« Last Edit: November 04, 2006, 12:09:16 AM by live@ct »
Existen 10 tipos de personas, los que entienden el codigo binario y los que no.

Offline tmcguire

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #365 on: November 07, 2006, 09:45:03 PM »
Has the first post in this thread been updated with the latest updates of the thread conversation?

I am very confused after reading about 15 pages of this thread and can't keep track of the changes and don't know if post #1 has had been edited to include all of the changes  throughout the entire thread.

* tmcguire is CONFUSED!

-Tom

Offline Acidgod

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #366 on: November 07, 2006, 09:47:08 PM »
Has the first post in this thread been updated with the latest updates of the thread conversation?

« Letzte Änderung: Februar 05, 2006, 21:06:11 von V@no »

I don't think so...

Offline live@ct

  • Sr. Member
  • ****
  • Posts: 348
    • View Profile
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #367 on: November 16, 2006, 09:59:33 AM »
Please help me!!

I check and try to remove the image_id of the URL for the images and for the categories

I like to change:

site.com/img-imagen1-1.html
site.com/cat-1.html

to:

site.com/img-imgen.html
site.com/categorie.html or site.com/categorie/

please help me!!!!
:(

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

Offline goldcoin

  • Pre-Newbie
  • Posts: 9
    • View Profile
    • Coly Wallpapers
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #368 on: November 26, 2006, 06:58:40 PM »
I've installed the mod published on page 14 and it's really changed the urls,
The only problem is when i click on a category i'm getting "error - page not found"
What could be the problem?

Offline Zyga

  • Jr. Member
  • **
  • Posts: 87
    • View Profile
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #369 on: December 01, 2006, 08:10:38 PM »
HI
Thank You for a this mod.
It works great with 1.7.4.

Now some questions.

1. How can i change profile links to short?
In my htaccess is
Code: [Select]
RewriteRule ^profile([0-9]+)\.htm$ member.php?action=showprofile&user_id=$1&%{QUERY_STRING}but they are stil
Code: [Select]
http://localhost/4images/member.php?action=showprofile&user_id=70
should i chande something in sessions.php?

2.I found here question about problems with dropdown form but i cant find answer 
Its strange my dropdown works for all cattegories but there is always one url
Code: [Select]
http://localhost/4images/cat.htmHow can I add here cat id?

3. When I use search there is always same url
Wow can I add searching word to URL?
Code: [Select]
http://localhost/4images/search_xxxx.htmxxxx- searching word
and same for user search

----------- edit -----------------------

add1

in sessions.php
before
Code: [Select]
elseif (strstr($url, 'postcards.php?image_id=')) {
add
Code: [Select]
      elseif (strstr($url, 'member.php?action=showprofile&user_id=')) {
                preg_match('#user_id=([0-9]+)&?#', $url, $matches);
          if (isset($matches[1])) {
            $split = explode('?', $url);
            $url = $split[0];
            $url   = str_replace('member.php', 'profile'.$matches[1].'.htm', $url);
          }

return $url;
}
Now short urls for profiles works and looks like
Code: [Select]
http://localhost/4images/profile49

And now I planing to make them like
Code: [Select]
http://localhost/4images/nick/profilelater planing
Code: [Select]
http://localhost/4images/search.htm?search_user=nickchange in to
Code: [Select]
http://localhost/4images/nick/gallery
If someone could help...
« Last Edit: December 03, 2006, 11:08:58 AM by Zyga »

Offline menes

  • Pre-Newbie
  • Posts: 2
    • View Profile
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #370 on: December 18, 2006, 10:53:09 AM »
xec  ,  we try codes which you give in 14. page.. 
İt is perfect  :) thanks  but   only   step 4.  is not work
Our adress show  always   www.site-name.com/cat-category.htm    or www.site-name.com/img-imagename.htm
But we want to show www.site-name.com/catname/subcatname/imagename.htm 
How we can do this?
And my second problem is  i want to use   çşğü...   letters  in adress   exm. www.site-name.com/çortşş.htm   how we can do it??
Thanks

Offline nobita

  • Jr. Member
  • **
  • Posts: 61
  • ondesktop.org
    • View Profile
    • Car Wallpapers
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #371 on: December 30, 2006, 05:33:04 PM »
xec  ,  we try codes which you give in 14. page.. 
İt is perfect  :) thanks  but   only   step 4.  is not work
Our adress show  always   www.site-name.com/cat-category.htm    or www.site-name.com/img-imagename.htm
But we want to show www.site-name.com/catname/subcatname/imagename.htm 
How we can do this?
And my second problem is  i want to use   çşğü...   letters  in adress   exm. www.site-name.com/çortşş.htm   how we can do it??
Thanks

Great question!

I want do it too.

Please help us!

Thank a lot!

Offline bibabobu

  • Sr. Member
  • ****
  • Posts: 311
  • Technische und künstlerische Gravuren
    • View Profile
    • Technische und künstlerische Gravuren für die gesamte Metall-, Kunststoff- und Papierindustrie
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #372 on: January 29, 2007, 02:16:41 AM »
Hello again!

I am using versuion 1.7.1
MOD of first page is working great for me.

MOD on page 14 (kief) i receive following error:
Code: [Select]
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/content/html/includes/sessions.php on line 626

Perhaps i have made something wrong.
Where do i have to put in the 2. code tags exactly?

I am also using MOD lang-select. Could be a problem with the code according to this MOD?

I am not a coder, only a question or idea.
Is it not possible to build in the "clickstream-tag" as URL? :idea:

Offline nobita

  • Jr. Member
  • **
  • Posts: 61
  • ondesktop.org
    • View Profile
    • Car Wallpapers
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #373 on: February 01, 2007, 01:52:25 PM »
Please help me!!

I check and try to remove the image_id of the URL for the images and for the categories

I like to change:

site.com/img-imagen1-1.html
site.com/cat-1.html

to:

site.com/img-imgen.html
site.com/categorie.html or site.com/categorie/

please help me!!!!
:(

thanks for your help!

I want this too. But for category only (beacause the file name can be existed).

Please help us!

Thank you!

Offline Acidgod

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #374 on: February 01, 2007, 02:15:23 PM »
This is not so easy and associated with heavy modification...

Without the IDs the Script doesn't now which Cat or Img you mean....