Changing URL of HTML Forum Pages

Go down

Solved Changing URL of HTML Forum Pages

Post by Sienna on July 1st 2016, 12:30 am

Forum Version: PhpBB3

Hello! I was wondering if someone could tell me how I could change the URL of a HTML page that I created.

Right now it's: http://www.ardentartforum.com/h5-staff

and I'd like to switch it to: http://www.ardentartforum.com/staff

Thank you for any help!


Last edited by Kelso on July 1st 2016, 9:49 am; edited 1 time in total
avatar
Sienna
Forumember

Female Posts : 68
Reputation : 4
Language : English

http://liveandnet.forumotion.com/

Back to top Go down

Solved Re: Changing URL of HTML Forum Pages

Post by APE on July 1st 2016, 3:56 am

Kelso wrote:Forum Version: PhpBB3

Hello! I was wondering if someone could tell me how I could change the URL of a HTML page that I created.

Right now it's: http://www.ardentartforum.com/h5-staff

and I'd like to switch it to: http://www.ardentartforum.com/staff

Thank you for any help!
Sorry there is no way to change The URl the h5-staff is the link where your page is saved it tells our system what part of the code needs to be read to show up on the forum.



avatar
APE
Administrator
Administrator

Male Posts : 12319
Reputation : 1282
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

Solved Re: Changing URL of HTML Forum Pages

Post by An on July 1st 2016, 4:11 am

While not possible server-side, it is possible to manipulate the history object via JavaScript so that the pathname of the page will display differently. You would need to add this snippet to your HTML page:
Code:
<script type="text/javascript">history.pushState({}, '', 'staff');</script>

Note however that this is merely aesthetic, so you will still need to use the original URL if you want to link to the page. I don't recommend it because of that, but if you really want to rename the URL client-side then that's how you can go about it.
avatar
An
Forumember

Posts : 44
Reputation : 24
Language : English

https://help.forumotion.com

Back to top Go down

Solved Re: Changing URL of HTML Forum Pages

Post by Take Notes on July 1st 2016, 7:11 am

I was just wondering this today too, haha. Thanks An!
avatar
Take Notes
Helper
Helper

Male Posts : 2337
Reputation : 324
Language : English
Location : Forumountain

http://forumpromocean.com

Back to top Go down

Solved Re: Changing URL of HTML Forum Pages

Post by Sienna on July 1st 2016, 9:48 am

@An wrote:While not possible server-side, it is possible to manipulate the history object via JavaScript so that the pathname of the page will display differently. You would need to add this snippet to your HTML page:
Code:
<script type="text/javascript">history.pushState({}, '', 'staff');</script>

Note however that this is merely aesthetic, so you will still need to use the original URL if you want to link to the page. I don't recommend it because of that, but if you really want to rename the URL client-side then that's how you can go about it.

Thank you very much for this! And for your response Ape!

Sad to hear you can't actually change it, but that's no biggy at all. Smile

Solved!
avatar
Sienna
Forumember

Female Posts : 68
Reputation : 4
Language : English

http://liveandnet.forumotion.com/

Back to top Go down

Solved Re: Changing URL of HTML Forum Pages

Post by Nemo on July 1st 2016, 11:38 am

Problem solved & topic archived.
Please read our forum rules: ESF General Rules
avatar
Nemo
Active Poster

Male Posts : 1201
Reputation : 119
Language : Greek, English, French

http://www.helpgr.forumgreek.com

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum