Results 1 to 6 of 6

Thread: htaccess URL show's id and name only

  1. #1
    Join Date
    Oct 2010
    Posts
    29

    Default htaccess URL show's id and name only

    Is there a way to remove view from the url for better seo?

    from:http://mysite.com/view/2/video-name/
    to:http://mysite.com/2/video-name/

    also to redirect http://mysite.com/view/2/video-name/ to the new url http://mysite.com/2/video-name/

  2. #2
    Join Date
    Dec 2009
    Posts
    71

    Default

    Hi,

    This is possible, open your htaccess file

    Find

    RewriteRule ^view/(.*)/(.*)/ view_video.php?id=$1 [L,QSA]

    replace with

    RewriteRule ^(\d+)/(.*)/ view_video.php?id=$1 [L,QSA]
    RewriteRule ^view/(.*)/(.*)/ view_video.php?id=$1 [L,QSA]

    then you have to change view video url in your tpl files.

    from:http://mysite.com/view/2/video-name/

    to:http://mysite.com/2/video-name/

    Thanks

    Buyscripts Team

  3. #3
    Join Date
    Oct 2010
    Posts
    29

    Default

    thanks
    but when i go to http://mysite.com/view/2/video-name/ do not redirect me to http://mysite.com/2/video-name/
    This means that i will have 2 links for the video and its bad for seo.

  4. #4
    Join Date
    Dec 2009
    Posts
    71

    Default

    Hi,

    Open htaccess file

    find

    RewriteRule ^view/(.*)/(.*)/ view_video.php?id=$1 [L,QSA]

    replace

    RewriteRule ^view/(.*)/(.*)/ video_redirect.php?id=$1 [L,QSA]

    download the attached zip file, extract and upload file into your vshare directory.

    if any problem please open a support ticket at http://helpdesk.buyscripts.in/open.php.

    Thanks

    Buyscripts Team
    Attached Files Attached Files
    Last edited by vshare; 03-28-2011 at 10:41 AM.

  5. #5
    Join Date
    Oct 2010
    Posts
    29

    Default

    thank you :)

  6. #6
    Join Date
    Sep 2010
    Location
    Pokhara Nepal
    Posts
    49

    Default

    i need patch for vshare 2.8.1 please, i want to have the video id and name of the video only or if possible youtube like url but meta description should appear as title. can you help?
    Nepal's Largest video community portal. share wisely at WWW.CLONEVIDEOS.COM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •