+ Reply to Thread
Results 1 to 9 of 9

Thread: Remove category from listing URL

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

    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
    1,580
    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
    432
    [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
    1,580
    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
    432
    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
    432
    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
    1,580
    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
    432
    [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
    1,580
    You should click each of these urls and then refresh your seo statistics

+ Reply to Thread