+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Remove category from listing URL

  1. #1
    Master
    Join Date
    Apr 2017
    Location
    Tehran/Iran
    Posts
    451

    Remove category from listing URL

    Is there a way to remove category from listing URL?

  2. #2
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    2,015
    Hello,

    Go to ftp > includes > classes > reefless.class.php > public function url > case 'listing':

    remove:
    PHP Code:
    Only registered members can view the code

  3. #3
    Master
    Join Date
    Apr 2017
    Location
    Tehran/Iran
    Posts
    451
    [QUOTE=Rudi;30335]Hello,

    Go to ftp > includes > classes > reefless.class.php > public function url > case 'listing':

    remove:
    PHP Code:
    Only registered members can view the code
    /QUOTE]

    Thanks Rudi, but then i get 404 error when try to open listing.

  4. #4
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    2,015
    You should enable Full URL for your listing type

    because there should be some identifier of the page like listing type or category

    otherwise, it will require a customization to identify page by listing id only

  5. #5
    Master
    Join Date
    Apr 2017
    Location
    Tehran/Iran
    Posts
    451
    Quote Originally Posted by Rudi View Post
    You should enable Full URL for your listing type

    because there should be some identifier of the page like listing type or category

    otherwise, it will require a customization to identify page by listing id only
    Many thanks. If it is complicated to give the needed codes here, please consider it for next version

  6. #6
    Master
    Join Date
    Apr 2017
    Location
    Tehran/Iran
    Posts
    451
    Quote Originally Posted by Rudi View Post
    You should enable Full URL for your listing type

    because there should be some identifier of the page like listing type or category

    otherwise, it will require a customization to identify page by listing id only
    Hello Rudi, if i enable Full URL with remove
    Code:
    Only registered members can view the code.
    then already indexed listings with

    Short URL shows 404 not found

  7. #7
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    2,015
    Hello Bahram,

    Add the following code for redirection into listing details controllers:

    includes > controllers > listing_details.inc.php > // get "Login" parameter of "View Details" page

    replace:
    PHP Code:
    Only registered members can view the code
    with:
    PHP Code:
    Only registered members can view the code

  8. #8
    Master
    Join Date
    Apr 2017
    Location
    Tehran/Iran
    Posts
    451
    [QUOTE=Rudi;30415]Hello Bahram,

    Add the following code for redirection into listing details controllers:

    includes > controllers > listing_details.inc.php > // get "Login" parameter of "View Details" page

    replace:
    PHP Code:
    Only registered members can view the code
    with:
    PHP Code:
    Only registered members can view the code
    /QUOTE]

    Hello Rudi, It does not work. All previous indexed listings ( with short URL ) still shows 404.

  9. #9
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    2,015
    You should click each of these urls and then refresh your seo statistics

  10. #10
    [QUOTE=Rudi;30335]Hello,

    Go to ftp > includes > classes > reefless.class.php > public function url > case 'listing':

    remove:
    PHP Code:
    Only registered members can view the code
    /QUOTE]

    Hello Rudi,

    I need do the same thing but there is not the code like
    $url .= $categoryPath in public function url > case 'listing'

    Version 4.8.1
    May be it was in the previous versions?

+ Reply to Thread