Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Changing URLs


Go to End


4 Posts   1609 Views

Avatar
Andrew Houle

Community Member, 140 Posts

19 November 2008 at 3:53am

I have a news page that is my second attempt at it. I deleted the first one so naturally silverstripe has called this page: mysite.com/news-2. When I try to change the URL within the meta data tab of the CMS to mysite.com/news, after I save and publish it it just reverts back to news-2. How can I make this work? Do I have to delete news within the database somewhere. Thanks in advance for your help!

Avatar
Andrew Houle

Community Member, 140 Posts

20 November 2008 at 3:08am

I could have sworn I saw a thread on this one time, but now I can't find it anywhere. It seems like you could just take out the URL name in the sitetree db, but that didn't work. Anyone have any suggestions?

Avatar
ajshort

Community Member, 244 Posts

20 November 2008 at 9:23am

I suspect that the problem is the fact that you cant have URLs the same as a class name - so if you have the class "News" you cant have a page with the URLSegment "news".

There are two possible fixes - change your News class to NewsPage or NewsArticle or something - the other is to update to 2.3-rc1, as it has a feature where this conflict only happens if your class is a subclass of RequestHandler (which your Page types arent)

Avatar
Andrew Houle

Community Member, 140 Posts

20 November 2008 at 10:32am

Thanks for your response! I'll give that a try.