Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Matk Posted October 5, 2015 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.
Matk Posted October 6, 2015 Author 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. ;(
Adlago Posted October 7, 2015 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]
Matk Posted October 8, 2015 Author Posted October 8, 2015 17 hours ago, Adlago said: Try this Doesn't work. ;(
Adlago Posted October 8, 2015 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.
Matk Posted October 8, 2015 Author 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
Adlago Posted October 8, 2015 Posted October 8, 2015 Send your host company to activate your account mod_rewrite.
ipbfuck Posted October 11, 2015 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
Matk Posted October 11, 2015 Author 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.
ipbfuck Posted October 11, 2015 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.