Matk Posted October 5, 2015 Share Posted October 5, 2015 Hello, is there any way to hide a directory in url via .htaccess? For example: Normal URL:http://www.mysite.com/forum/topic/index.php URL after hidden:http://www.mysite.com/topic/index.php Thank you. Link to comment Share on other sites More sharing options...
Matk Posted October 6, 2015 Author Share Posted October 6, 2015 I found this tutorial: http://blog.helvecio.com/2015/02/03/joomla-escondendo-o-sub-diretorio-de-uma-url.html (in portuguese) But it did not work with me. ;( Link to comment Share on other sites More sharing options...
Matk Posted October 7, 2015 Author Share Posted October 7, 2015 up Link to comment Share on other sites More sharing options...
Adlago Posted October 7, 2015 Share Posted October 7, 2015 On 5.10.2015 г.,, Matheus Sesso said: Normal URL: http://www.mysite.com/forum/topic/index.php URL after hidden:http://www.mysite.com/topic/index.php Try this Quote RewriteEngine on RewriteCond %{HTTP_HOST} ^(www.)?mysait.com$ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !forum/ RewriteRule (.*) /forum/$1 [L] Link to comment Share on other sites More sharing options...
Matk Posted October 8, 2015 Author Share Posted October 8, 2015 17 hours ago, Adlago said: Try this Doesn't work. ;( Link to comment Share on other sites More sharing options...
Adlago Posted October 8, 2015 Share Posted October 8, 2015 7 minutes ago, Matheus Sesso said: Doesn't work. ;( Take the test (htaccess) Options +FollowSymLinks RewriteEngine On RewriteBase / RewriteRule test https://community.invisionpower.com/? [NC,R,L] Start http://yoursait.com/test If mod_rewrite works to open this site here. Link to comment Share on other sites More sharing options...
Matk Posted October 8, 2015 Author Share Posted October 8, 2015 20 minutes ago, Adlago said: Take the test (htaccess) Options +FollowSymLinks RewriteEngine On RewriteBase / RewriteRule test https://community.invisionpower.com/? [NC,R,L] Start http://yoursait.com/test If mod_rewrite works to open this site here. Doesn't work again. See: www.tibiaking.com/test Link to comment Share on other sites More sharing options...
Adlago Posted October 8, 2015 Share Posted October 8, 2015 Send your host company to activate your account mod_rewrite. Link to comment Share on other sites More sharing options...
ipbfuck Posted October 11, 2015 Share Posted October 11, 2015 any link in Your forum is with a good rewrite (eg: http://www.tibiaking.com/forum/topic/63013-1-o-seu-novo-tibia-king/) so, isn't necessary to contact Your Host (rewrite is enabled - make a phpinfo(); For confirm). - For request: U have a redirect from root ( http://www.tibialing.com/ ) to */forum. this is not useful. imho, is best to move your "forum" in root directory. thanks to this your request (hide - ehm... remove! directory from url) will be fixed Link to comment Share on other sites More sharing options...
Matk Posted October 11, 2015 Author Share Posted October 11, 2015 The URL of forum is so because the default application is the forum, but I want to put the Portal as default application, so the URL would look like this: http://www.tibiaking.com/forum/forums/topic/63013-1-o-seu-novo-tibia-king/ If I move my forum to the root folder, all my links will break, so this option is unfeasible. The mod_rewrite is active in my host, so that the .htaccess of IPB works quietly. I'm looking for a solution, but it's really complicated. Link to comment Share on other sites More sharing options...
ipbfuck Posted October 11, 2015 Share Posted October 11, 2015 sorry, but I see your content and seems to be in forum directory: http://www.tibiaking.com/forum/uploads/monthly_2015_10/Untitled_1.png.115a19ae302fb141521f4d5b48b863dc.png I repeat: In my opinion your root is empty. So, u need to move your content from /frorum to /(root), reconfig global.php and fix old link (best for seo) with a simple rule in htaccess. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.