GetSimple Support Forum
url with subfolders - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16)
+--- Thread: url with subfolders (/showthread.php?tid=5198)



url with subfolders - stavelik - 2013-09-23

Hi, I have GS in subfolder and my URLs look like:
domain.com/domains/domain.com/index/page-title/

Is it possible change it to:
domain.com/page-title

? How?

Thank you


RE: url with subfolders - Timbow - 2013-09-23

I don't understand. I have GS in subfolders and the url (with fancy urls on) of a page is
domain.com/subfolder/pageslug
or for the index
domain.com/subfolder/

Like here all the theme demos are separate GS installs in sub folders
http://timbowgs.bplaced.net/citywide/

Have you got a folder called index in a folder called domain.com?


RE: url with subfolders - datiswous - 2013-09-23

(2013-09-23, 16:55:43)stavelik Wrote: Hi, I have GS in subfolder and my URLs look like:
domain.com/domains/domain.com/index/page-title/

Is it possible change it to:
domain.com/page-title

? How?

Thank you

You mean domain.com/sites/gs-site ?

You can also make a subdomain like gs-site.domain.com . So if you want to change the url, you don't have to change the folder structure.


RE: url with subfolders - Carlos - 2013-09-23

@stavelik

Did you change the website url in settings? Are you using some custom permalink structure?


RE: url with subfolders - D.O. - 2013-09-23

@stavelik: Yes you can do it,
if you move the content of your GS site to the new folders
domain.com/page-title
and click on "Settings" and modify "Website URL".


RE: url with subfolders - andyhasit - 2013-09-24

I'm having a problem with this too. I have my getsimple installation in a subdirectory, like so:

http://domain.com/subdirectory/

I have changed the website URL in the settings page to mirror the above (which is what it suggests), I don't have fancy urls enabled, or a custom permalink structure.

The url(/theme/...) function that gets called from various parts inside themes doesn't seem to take this into account, the result being that it doesn't find certain files.

E.g. I get:

http://localhost/theme/Flamingo2.2.2/assets/img/stripe.gif 404 (Not Found)

which is understandable as the file is actually at:

http://localhost/subdirectory/theme/Flamingo2.2.2/assets/img/stripe.gif

Any ideas?

(Also, while I'm here, I take it the search function on this forum is broken? E.g. if you search this topic for the words "timbowgs" and "citywide", which both show up in post no 2 in this thread, it should find this page, but instead returns no results. If the search function doesn't take multiple words, it's pretty much useless...)


RE: url with subfolders - D.O. - 2013-09-24

Hi andyhasit,
then check in your template if the images are called with this function
e.g. <?php get_theme_url(); ?>/assets/img/stripe.gif
Then check in the section "Theme" if the path of your template is correct or select it again.
Check again in "WebSite Settings" if your url is
http://domain.com/subdirectory/
If all this shouldn't work, then modify the paths of your template manually Undecided
Same thing for the paths of the images in your all pages.
I know.. it's Not the best solution but at least could work!

Let me know if it works.


RE: url with subfolders - andyhasit - 2013-09-24

(2013-09-24, 15:42:55)D.O. Wrote: Hi andyhasit,
then check in your template if the images are called with this function
e.g. <?php get_theme_url(); ?>/assets/img/stripe.gif
Then check in the section "Theme" if the path of your template is correct or select it again.
Check again in "WebSite Settings" if your url is
http://domain.com/subdirectory/
If all this shouldn't work, then modify the paths of your template manually Undecided
Same thing for the paths of the images in your all pages.
I know.. it's Not the best solution but at least could work!

Let me know if it works.

D.O.

I think it will have to be renaming of paths as some of the url() calls are in css. In hindsight it all makes sense as url() is not a getsimple function and "/" will map to "http://domain.com/", but I can see how this throws people first time round.

I like making copies and backups of templates too so I'll just have to keep on top of updating path references across various files, which is not problem with Notepad ++.

Thanks for the reply!


RE: url with subfolders - D.O. - 2013-09-24

No thanks needed, mate.
If you need help with your css file, don't hesitate to contact me.
Good Luck


RE: url with subfolders - shawn_a - 2013-09-24

Sounds like the theme is not properly coded.


RE: url with subfolders - shawn_a - 2013-09-24

(2013-09-24, 08:05:47)andyhasit Wrote: (Also, while I'm here, I take it the search function on this forum is broken? E.g. if you search this topic for the words "timbowgs" and "citywide", which both show up in post no 2 in this thread, it should find this page, but instead returns no results. If the search function doesn't take multiple words, it's pretty much useless...)

Those are not words they are in a url, words require a word boundary ( spaces around them )