Masking version directory from URL - Joomla! Forum - community, help and support
hi,
i upgrading site joomla 2.5 , have placed new joomla directory in subdirectory of site's www root.
that is, new joomla root directory http://mydomain.com/jooml254
i have used .htaccess in www root redirect http://mydomain.com http://mydomain.com/joomla254
here .htaccess file
rewriteengine on
rewritecond %{http_host} ^mydomain\.com$ [or]
rewritecond %{http_host} ^www\.mydomain\.com$
rewriterule ^/?$ "\/joomla254\/" [r=301,l]
what want achieve able this:
1. mask joomla254 directory never shows in browser url
2. if possible able use http://mydomain.com/{any joomla uri} (pasted browser) redirect joomla instance in /joomla254/{any joomla uri}
is possible?
i upgrading site joomla 2.5 , have placed new joomla directory in subdirectory of site's www root.
that is, new joomla root directory http://mydomain.com/jooml254
i have used .htaccess in www root redirect http://mydomain.com http://mydomain.com/joomla254
here .htaccess file
rewriteengine on
rewritecond %{http_host} ^mydomain\.com$ [or]
rewritecond %{http_host} ^www\.mydomain\.com$
rewriterule ^/?$ "\/joomla254\/" [r=301,l]
what want achieve able this:
1. mask joomla254 directory never shows in browser url
2. if possible able use http://mydomain.com/{any joomla uri} (pasted browser) redirect joomla instance in /joomla254/{any joomla uri}
is possible?
delete code .htaccess , create index.html file ...
<html>
<head>
<title>webdongle</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
</head>
<frameset rows="100%">
<frame src="http://www.site.com/jooml254" title="put page title here" frameborder="0" noresize="noresize"/>
<noframes>
<body>
<p>sorry, browser not handle frames!</p>
</body>
</noframes>
</frameset>
</html>
Comments
Post a Comment