Can't get rid of /subdirectory in URL
Permalink
Hi,
I have a site where the server company has the site in a folder at root level on the server. The only we we can get the site to work is to have the directory in the URL. The URL to the site iswww.www.sitename.com/foldername...
In the DIR_REL I have tried 'DIR_REL', '/foldername'); but the domain name still shows the subdirectory. Putting the site on the root directory and updating DIR_REL accordingly does not work.
The .htaccess is as below. Any help really appreciated as there a couple of people here about to throw computers out of windows! Thanks in advance.
# -- concrete5 urls start --
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /foldername/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteRule . index.php [L]
</IfModule>
# -- concrete5 urls end --
I have a site where the server company has the site in a folder at root level on the server. The only we we can get the site to work is to have the directory in the URL. The URL to the site iswww.www.sitename.com/foldername...
In the DIR_REL I have tried 'DIR_REL', '/foldername'); but the domain name still shows the subdirectory. Putting the site on the root directory and updating DIR_REL accordingly does not work.
The .htaccess is as below. Any help really appreciated as there a couple of people here about to throw computers out of windows! Thanks in advance.
# -- concrete5 urls start --
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /foldername/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteRule . index.php [L]
</IfModule>
# -- concrete5 urls end --
Thanks Anthony, will do.
All the best.
Dan.
All the best.
Dan.
You might try this option as well:
Install to a Subdirectory, Run from root (without patches or .htaccess)
http://www.concrete5.org/?cID=612245...
Install to a Subdirectory, Run from root (without patches or .htaccess)
http://www.concrete5.org/?cID=612245...
This sounds more like a web server configuration issue more than anything related to Concrete5.
Contact your hosting company and tell them you want to do.
Cheers,
Anthony