Topic Closed
zoyo
7 Posts

Hello,

my idea is to install gpEasy in a folder, e.g in GPE in my www directory. It would cause this type URL: www.mysite.com/GPE/something.

But I would prefer www.mysite.com/something. In short I don't want the directory where I installed gpEasy to appear in the URL, not even when I hover over a link on the page. I guess it can be done somehow with .htaccess, but I am anything but great at that.

Thanks in advance.

10 years ago#1926

Josh S.
2K Posts
295K Downloads
16 Themes
18 Plugins

The best way would probably be apache's mod_alias, it can't be used in .htaccess though.

I'm not sure how gpEasy would handle using mod_rewrite, but something like this might work:

<IfModule mod_rewrite.c>
  <IfModule mod_env.c>
  SetEnv gp_rewrite On
  </IfModule>
  RewriteEngine On
  RewriteBase "/"
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . "/GPE/index.php" [L]
</IfModule>

 

Edited: 10 years ago#1929

I was able to get it to work using  "include" in the index.php file. But for the life of me I can't figure out how I did it.

10 years ago#1960

zoyo
7 Posts

Semi-good news. Could you find that include somehow? Maybe comparing with the original file?

10 years ago#1961

zoyo
7 Posts

Thanks for  the reply, this is halfway. www.mysite.com opens properly without indicating install directory. gpEasy is not mad about it (=works). Clicking on a link, however, uses/shows the install directory in the URL (or when hoveing over).

10 years ago#1962

Topic Closed

 

News

elFinder 2.1.50 in Upcoming Release
12/28/2019

A new release for Typesetter is in the works with a lot of improvements including the ... Read More

Typesetter 5.1
8/12/2017

Typesetter 5.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More

More News

HH-Support

Company located in T├│rshavn, Faroe Islands. * Webpage Design * Consultant & Provider of a wide range of programs for visually impaired and dyslextics.

Find out more about our Provider Spotlight

Log In

  Register