I want SEO url html  (Read 179 times) Print

1 B


quypro  July 17, 2018, 07:23:58 PM

Hi every body.
Now url my website is: http://domain.com/video/id_video/title_video/
I want SEO url as: http://domain.com/video/id_video/title_video.html
What should I do ?
Thank you very match !

Logged


Rafael Q  July 18, 2018, 12:28:43 AM

Hi! Please ask this kind of questions at support.

Logged


AlexH  July 18, 2018, 01:16:26 AM

just go to permalinks link and add .html and the end.
like: /video/:id/:name.html

Logged


quypro  July 18, 2018, 06:26:23 AM

Thank you.
But i have tried, it became http://domain.com/video/id_video/title_video.html/
How to remove / at end url ?
Thanks so much !

Logged


quypro  July 18, 2018, 06:29:37 AM

Hi! Please ask this kind of questions at support.
I asked Support from 2018-07-13 16:45, but no one answered me :(

Logged


AlexH  July 19, 2018, 08:17:08 PM

Try dhis in htaccess files
to remove /
Code
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R] # <- for test, for prod use [L,R=301]

to add /
Code
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*[^/])$ /$1/ [L,R] # <- for test, for prod use [L,R=301]

Logged


quypro  July 19, 2018, 10:00:45 PM

Try dhis in htaccess files
to remove /
Code
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R] # <- for test, for prod use [L,R=301]

to add /
Code
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*[^/])$ /$1/ [L,R] # <- for test, for prod use [L,R=301]
thank you for the help, but the adjustment in .htaccess file has no effect.
I tried many ways, but the results did not change :(

Logged


quypro  July 24, 2018, 08:00:40 AM

help me !!!

Logged


Rafael Q  August 07, 2018, 06:40:46 PM

I asked Support from 2018-07-13 16:45, but no one answered me :(

You need to know that .html is a very old way of handling permalinks.
And some things not even support has time to investigate and test.
Remember: We brought the cms, didn't build it, we're still learning some things about it.

Logged