The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Changing URL of HTML Forum Pages

5 posters

Go down

Solved Changing URL of HTML Forum Pages

Post by Sienna 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
Sienna
Sienna
Forumember

Female Posts : 93
Reputation : 6
Language : English

http://liveandnet.forumotion.com/

Back to top Go down

Solved Re: Changing URL of HTML Forum Pages

Post by Ape 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.


Changing URL of HTML Forum Pages Left1212Changing URL of HTML Forum Pages Center11Changing URL of HTML Forum Pages Right112
Changing URL of HTML Forum Pages Ape_b110
Changing URL of HTML Forum Pages Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 19454
Reputation : 2012
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 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.
An
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 July 1st 2016, 7:11 am

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

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

Back to top Go down

Solved Re: Changing URL of HTML Forum Pages

Post by Sienna 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!
Sienna
Sienna
Forumember

Female Posts : 93
Reputation : 6
Language : English

http://liveandnet.forumotion.com/

Back to top Go down

Solved Re: Changing URL of HTML Forum Pages

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

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

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

http://www.helpgr.forumgreek.com

Back to top Go down

Back to top

- Similar topics

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