Solved

Remove part of url with htaccess

Posted on 2011-02-28
3
511 Views
Last Modified: 2012-05-11
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
Comment
Question by:wal_toor
3 Comments
 
LVL 16

Accepted Solution

by:
sjklein42 earned 250 total points
Comment Utility
Try this:

Options +FollowSymLinks
 
RewriteEngine On
RewriteBase /

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

Open in new window

0
 

Assisted Solution

by:HiroshiSenga
HiroshiSenga earned 250 total points
Comment Utility
There is another simple way,
Write as follows;

Redirect permanent /site2/ /
0
 
LVL 8

Author Closing Comment

by:wal_toor
Comment Utility
Thanks all, sorry for the late respond.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now