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/
Printable View
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/
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
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.
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
thank you :)
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?