Jump to content

Hide directory in URL


Matk
 Share

Recommended Posts

On 5.10.2015 г.,, Matheus Sesso said:

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

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

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

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 :)

Edited by laltroweb.it
Link to comment
Share on other sites

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. :hmm:

Edited by Matheus Sesso
Link to comment
Share on other sites

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.

Edited by laltroweb.it
Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...