Jump to content
simberak

CMS - custom urls for Landing pages

Recommended Posts

Hello to all,

I would like to make new landing pages in CMS. What I would like to achieve is custom urls for my new landing pages, because now the url of cms looks like webstie.com/content/id-name-of-article. I would like the landing page url in this way: website.com/name-of-article. So can I do it through .htaccess with url redirect/remapping? I need to make this manualy for each landing page because I am already using the content/id-older-articles for older articles.

So If I use the .htaccess and will remap the landing from cms like this

# url remapping
RewriteEngine on
RewriteRule first-landing-page content/id-first-landing-page
RewriteRule second-landing-page content/id-second-landing-page
RewriteRule third-landing-page content/id-third-landing-page

then the customer will come to website.com/first-landing-page and get the content (not redirection to) of content/id-first-landing-page. But then there will be duplicity, because both url are existing. And I want to rank my new url (website.com/first-landing-page) for SERP and want not be penalized for duplicity. 

So how to achieve it?

 

1) I thought about to make a redirection 301 from website.com/content/id-first-landing-page to website/first-landing-page. But this solution maybee will do cycling? Is there possible to merge the url remapping with redirecting so it won´t cycle? I would prefer the following option, because these articles will be newly made. They don´t need to be redirected but if this will be one only solution, I will do it :).

 

2) Set the origin article (content/id-first-landing-page) 

<link rel="canonical" href="https://website.com/first-landing-page" />

so it will solve the duplicity. But the question is, how to add this code to these new landing pages cms articles?

 

3) Do you know how to make this another way? Still I am noob in this and I don´t have another ideas :(

 

Tnak you very much for help, I hope this topic will help others who are seeking solution for this too...

 

Edited by simberak (see edit history)

Share this post


Link to post
Share on other sites

Hello,

thanks for your answer. But I am not looking for removing ID, I would like to rewrite the whole url by myself (and with that i will remove the ids :)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More