[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 554
  • Last Modified:

Remove part of url with htaccess

Hellow all,

I have this url:

http://www.mylocalwebsite.local/site2/nl#/stock_sample/41/42/4

Now, i need to rewrite this url to:

http://www.mylocalwebsite.local/nl#/stock_sample/41/42/4

Can someone help me with this. Thanks in advance.

greetz,
watler
0
wal_toor
Asked:
wal_toor
2 Solutions
 
sjklein42Commented:
Try this:

Options +FollowSymLinks
 
RewriteEngine On
RewriteBase /

RewriteRule ^site2/(.*)$ $1 [R]

Open in new window

0
 
HiroshiSengaCommented:
There is another simple way,
Write as follows;

Redirect permanent /site2/ /
0
 
wal_toorAuthor Commented:
Thanks all, sorry for the late respond.
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now