Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
web.config Subpage
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="MarcusDev" data-source="post: 385519" data-attributes="member: 64120"><p>Hello DevBest <img src="/styles/default/xenforo/smilies/emojione/smile.png" class="smilie" loading="lazy" alt=":)" title="Smile :)" data-shortname=":)" /></p><p>ok, so I wanted to create a sub-page from the menu on the page.</p><p></p><p>The goal is to make it so that if one enters the url / community / event</p><p>then they will be transferred to the event page.</p><p><img src="https://i.picuza.com/VSbT6.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p>Here is an example of how I want it to look like. I'll just replace experts with event.</p><p></p><p>I do not know, but I think web.config has something to do with this, then here is the source code.</p><p>Code:</p><p><?xml version="1.0" encoding="UTF-8"?></p><p></p><p></p><p><configuration></p><p> <system.webServer></p><p> <rewrite></p><p> <rules></p><p> <rule name="Imported Rule 1"></p><p> <match url="^(|/)$" ignoreCase="false" /></p><p> <action type="Rewrite" url="index.php?url={R:1}" appendQueryString="false" /></p><p> </rule></p><p> <rule name="Imported Rule 2"></p><p> <match url="^([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" /></p><p> <action type="Rewrite" url="index.php?url={R:1}" appendQueryString="false" /></p><p> </rule></p><p> <rule name="Imported Rule 3"></p><p> <match url="^(.*)\.htm$" /></p><p> <action type="Rewrite" url="{R:1}.php" /></p><p> </rule></p><p> <rule name="Imported Rule 4"></p><p> <match url="^(|/)$" ignoreCase="false" /></p><p> <action type="Rewrite" url="dash.php?page={R:1}" appendQueryString="false" /></p><p> </rule></p><p> <rule name="Imported Rule 5"></p><p> <match url="^([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" /></p><p> <action type="Rewrite" url="dash.php?url={R:1}" appendQueryString="false" /></p><p> </rule></p><p> <rule name="Imported Rule 1-1"></p><p> <match url="^(|/)$" ignoreCase="false" /></p><p> <action type="Rewrite" url="index.php?url={R:1}" appendQueryString="false" /></p><p> </rule></p><p> <rule name="Imported Rule 2-1"></p><p> <match url="^([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" /></p><p> <action type="Rewrite" url="index.php?url={R:1}" appendQueryString="false" /></p><p> </rule></p><p> <rule name="Imported Rule 3-1"></p><p> <match url="^(.*)\.htm$" /></p><p> <action type="Rewrite" url="{R:1}.php" /></p><p> </rule></p><p> <rule name="Imported Rule 4-1"></p><p> <match url="^(|/)$" ignoreCase="false" /></p><p> <action type="Rewrite" url="dash.php?page={R:1}" appendQueryString="false" /></p><p> </rule></p><p> <rule name="Imported Rule 5-1"></p><p> <match url="^([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" /></p><p> <action type="Rewrite" url="dash.php?url={R:1}" appendQueryString="false" /></p><p> </rule></p><p> <rule name="Imported Rule 9-1"></p><p> <match url="^habbo-imaging/badge/([^/]+)$" ignoreCase="false" /></p><p> <action type="Rewrite" url="/habbo-imaging/badge.php?badge={R:1}" appendQueryString="false" /></p><p> </rule></p><p> <rule name="Imported Rule 10-1"></p><p> <match url="^habbo-imaging/head/([^/]+)$" ignoreCase="false" /></p><p> <action type="Rewrite" url="/habbo-imaging/head.php?figure={R:1}" appendQueryString="false" /></p><p> </rule></p><p> <rule name="Habbo Imaging Group Badges"></p><p> <match url="^habbo-imaging/badge/([^/]+)" ignoreCase="false" /></p><p> <action type="Rewrite" url="/habbo-imaging/badge.php?badge={R:1}" appendQueryString="false" /></p><p> </rule></p><p> <rule name="Habbo Imaging Avatarimage 1"></p><p> <match url="^habbo-imaging/avatar/([^/]+)" ignoreCase="false" /></p><p> <action type="Rewrite" url="habbo-imaging/avatarimage.php?figure={R:1}" appendQueryString="false" /></p><p> </rule></p><p> <rule name="Habbo Imaging Avatar Image 2"></p><p> <match url="^habbo-imaging/avatarimage/([^/]+)" ignoreCase="false" /></p><p> <action type="Rewrite" url="habbo-imaging/avatarimage.php?username={R:1}" appendQueryString="false" /></p><p> </rule></p><p> <rule name="Habbo Imaging Avatar Head"></p><p> <match url="^habbo-imaging/head/([^/]+)" ignoreCase="false" /></p><p> <action type="Rewrite" url="habbo-imaging/head.php?figure={R:1}" appendQueryString="false" /></p><p> </rule></p><p> <rule name="rule 1r"></p><p> <match url="^(community/staff)$" /></p><p> <action type="Rewrite" url="/staff" /></p><p></rule></p><p><rule name="rule 2r"></p><p> <match url="^(community/experts)$" /></p><p> <action type="Rewrite" url="/experts" /></p><p></rule></p><p><rule name="rule 3r"></p><p> <match url="^(community/designers)$" /></p><p> <action type="Rewrite" url="/designers" /></p><p></rule></p><p><rule name="rule 4r"></p><p> <match url="^(community/commands)$" /></p><p> <action type="Rewrite" url="/commands" /></p><p></rule></p><p><rule name="rule 5r"></p><p> <match url="^home/([a-zA-Z0-9_-]+)(|/)$" /></p><p> <action type="Rewrite" url="/index.php?url=home&amp;user={R:1}" /></p><p></rule></p><p><rule name="rule 6r"></p><p> <match url="^user/([a-zA-Z0-9_-]+)(|/)$" /></p><p> <action type="Rewrite" url="/index.php?url=home&amp;user={R:1}" /></p><p></rule></p><p><rule name="rule 7r"></p><p> <match url="^profile/([a-zA-Z0-9_-]+)(|/)$" /></p><p> <action type="Rewrite" url="/index.php?url=home&amp;user={R:1}" /></p><p></rule></p><p><rule name="rule 8r"></p><p> <match url="^news/([a-zA-Z0-9_-]+)(|/)$" /></p><p> <action type="Rewrite" url="/index.php?url=news&amp;id={R:1}" /></p><p></rule></p><p><rule name="rule 9r"></p><p> <match url="^article/([a-zA-Z0-9_-]+)(|/)$" /></p><p> <action type="Rewrite" url="/index.php?url=news&amp;id={R:1}" /></p><p></rule></p><p> </rules></p><p> </rewrite></p><p> </p><p> </system.webServer></p><p> </p><p></configuration></p></blockquote><p></p>
[QUOTE="MarcusDev, post: 385519, member: 64120"] Hello DevBest :) ok, so I wanted to create a sub-page from the menu on the page. The goal is to make it so that if one enters the url / community / event then they will be transferred to the event page. [IMG]https://i.picuza.com/VSbT6.png[/IMG] Here is an example of how I want it to look like. I'll just replace experts with event. I do not know, but I think web.config has something to do with this, then here is the source code. Code: <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule name="Imported Rule 1"> <match url="^(|/)$" ignoreCase="false" /> <action type="Rewrite" url="index.php?url={R:1}" appendQueryString="false" /> </rule> <rule name="Imported Rule 2"> <match url="^([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" /> <action type="Rewrite" url="index.php?url={R:1}" appendQueryString="false" /> </rule> <rule name="Imported Rule 3"> <match url="^(.*)\.htm$" /> <action type="Rewrite" url="{R:1}.php" /> </rule> <rule name="Imported Rule 4"> <match url="^(|/)$" ignoreCase="false" /> <action type="Rewrite" url="dash.php?page={R:1}" appendQueryString="false" /> </rule> <rule name="Imported Rule 5"> <match url="^([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" /> <action type="Rewrite" url="dash.php?url={R:1}" appendQueryString="false" /> </rule> <rule name="Imported Rule 1-1"> <match url="^(|/)$" ignoreCase="false" /> <action type="Rewrite" url="index.php?url={R:1}" appendQueryString="false" /> </rule> <rule name="Imported Rule 2-1"> <match url="^([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" /> <action type="Rewrite" url="index.php?url={R:1}" appendQueryString="false" /> </rule> <rule name="Imported Rule 3-1"> <match url="^(.*)\.htm$" /> <action type="Rewrite" url="{R:1}.php" /> </rule> <rule name="Imported Rule 4-1"> <match url="^(|/)$" ignoreCase="false" /> <action type="Rewrite" url="dash.php?page={R:1}" appendQueryString="false" /> </rule> <rule name="Imported Rule 5-1"> <match url="^([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" /> <action type="Rewrite" url="dash.php?url={R:1}" appendQueryString="false" /> </rule> <rule name="Imported Rule 9-1"> <match url="^habbo-imaging/badge/([^/]+)$" ignoreCase="false" /> <action type="Rewrite" url="/habbo-imaging/badge.php?badge={R:1}" appendQueryString="false" /> </rule> <rule name="Imported Rule 10-1"> <match url="^habbo-imaging/head/([^/]+)$" ignoreCase="false" /> <action type="Rewrite" url="/habbo-imaging/head.php?figure={R:1}" appendQueryString="false" /> </rule> <rule name="Habbo Imaging Group Badges"> <match url="^habbo-imaging/badge/([^/]+)" ignoreCase="false" /> <action type="Rewrite" url="/habbo-imaging/badge.php?badge={R:1}" appendQueryString="false" /> </rule> <rule name="Habbo Imaging Avatarimage 1"> <match url="^habbo-imaging/avatar/([^/]+)" ignoreCase="false" /> <action type="Rewrite" url="habbo-imaging/avatarimage.php?figure={R:1}" appendQueryString="false" /> </rule> <rule name="Habbo Imaging Avatar Image 2"> <match url="^habbo-imaging/avatarimage/([^/]+)" ignoreCase="false" /> <action type="Rewrite" url="habbo-imaging/avatarimage.php?username={R:1}" appendQueryString="false" /> </rule> <rule name="Habbo Imaging Avatar Head"> <match url="^habbo-imaging/head/([^/]+)" ignoreCase="false" /> <action type="Rewrite" url="habbo-imaging/head.php?figure={R:1}" appendQueryString="false" /> </rule> <rule name="rule 1r"> <match url="^(community/staff)$" /> <action type="Rewrite" url="/staff" /> </rule> <rule name="rule 2r"> <match url="^(community/experts)$" /> <action type="Rewrite" url="/experts" /> </rule> <rule name="rule 3r"> <match url="^(community/designers)$" /> <action type="Rewrite" url="/designers" /> </rule> <rule name="rule 4r"> <match url="^(community/commands)$" /> <action type="Rewrite" url="/commands" /> </rule> <rule name="rule 5r"> <match url="^home/([a-zA-Z0-9_-]+)(|/)$" /> <action type="Rewrite" url="/index.php?url=home&user={R:1}" /> </rule> <rule name="rule 6r"> <match url="^user/([a-zA-Z0-9_-]+)(|/)$" /> <action type="Rewrite" url="/index.php?url=home&user={R:1}" /> </rule> <rule name="rule 7r"> <match url="^profile/([a-zA-Z0-9_-]+)(|/)$" /> <action type="Rewrite" url="/index.php?url=home&user={R:1}" /> </rule> <rule name="rule 8r"> <match url="^news/([a-zA-Z0-9_-]+)(|/)$" /> <action type="Rewrite" url="/index.php?url=news&id={R:1}" /> </rule> <rule name="rule 9r"> <match url="^article/([a-zA-Z0-9_-]+)(|/)$" /> <action type="Rewrite" url="/index.php?url=news&id={R:1}" /> </rule> </rules> </rewrite> </system.webServer> </configuration> [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
web.config Subpage
Top