Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Changing... or "masking" existing URLs
One thing I am curious about, is if there is any simple way to "rename" or "mask" some of the URLs for the script, without having to rename them in every relevant file using that particular URL path.
For instance, I might like for mysite.com/pound to appear in the browser as mysite.com/hall of honor. Can something like this be accomplished via the .htaccess file? Thanks for any input! |
#3
|
||||
|
||||
I believe you have to rename the file in your host's file manager? I'm not a coder though.
__________________
Avatar courtesy of Doll Divine. |
#4
|
|||
|
|||
Quote:
If there were a way to create another column in the database called linkname, that would function to be what is displayed by the browser in the address bar, that would be great. So you would have the existing column linkurl, and the partner column linkname. One acting to gather the content, and one to display in the browser. Is this possible maybe? Last edited by Vaporman87; 02-28-2014 at 03:57 PM. |
#5
|
||||
|
||||
The name of the php files give the name to the page. But what's the problem with modifying the file names instead? In 1.3.4 it's just two files to change I believe?
By the way, the links in the database don't actually create the page, they are just used to display the links in the correct place. As long as you have 2 files (one as controller and another as view) with the index() function they will become a page (as well as all other public functions contained in the same files) even if they aren't in the database, from what I've seen. So I don't really know if that would work out
__________________
asp.net stole my soul. Last edited by IntoRain; 02-28-2014 at 05:02 PM. |
#6
|
|||
|
|||
I figured there were several files that contained code which depended on the predetermined names for the php files as paths to certain things. Is this not the case?
|
#7
|
||||
|
||||
In my understanding, there are other files in the script that reference other files, so I would assume that if you changed the file name it would break that part of the script. I may be completely wrong but I'm not sure.
What you can do though, is mask the entire site with the same URL using your host's Domain masking and then change the names of the the links that you click on in the nav bar, so then the users would have no idea what the URL really is, so they'd just assume that its whatever the link name is. ..That may not be what you'd like to do, but seeing as I'm no avid coding professional its the only suggestion that I can provide. Hope it helps. |
#8
|
||||
|
||||
It doesn't break anything as long as you do this:
1) There are two files you need to change the name of. Let's take the /adopt link as an example. If you want to change /adopt to /capture you'll need to go to the main folder and change adopt.php to capture.php. Open the file edition and change AdoptController to CaptureController. 2) Then change adoptview.php to captureview.php. Edit the code and change AdoptView to CaptureView 3) Change the respective lang's file name (lang_adopt.php to lang_capture.php) if there is a need. 4) And of course change all previous links that had the old name (for example menu ones), which might be what takes more time depending on what you are changing. I guess this is what you meant and were trying to avoid, so sorry about that xD
__________________
asp.net stole my soul. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
"Fairy State" theme by Bobbybighoof (Mysidia 1.3.3) | bobbybig | Templates and Themes | 3 | 07-18-2018 06:54 PM |
Removing of prefix "class", "abstract", "interface" Suggestions | FounderSim | Suggestions and Feature Requests | 3 | 10-05-2014 05:35 PM |
"Nicnack Shop" by Bobbybighoof (mysidia v1.3.3) | bobbybig | Templates and Themes | 5 | 04-15-2013 03:11 PM |
[Updated] AJAX Sortable Adoptables on "myadopts.php" Page | fadillzzz | Mys v1.2.x Mods | 57 | 05-29-2012 02:16 AM |
A php question about changing the "level up" section | coffeeaddict | Questions and Supports | 6 | 02-26-2011 11:08 AM |
What's New? |
What's Hot? |
What's Popular? |