Solved

Remove part of url with htaccess

Posted on 2011-02-28
3
532 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 16

Accepted Solution

by:
sjklein42 earned 250 total points
ID: 34997358
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
ID: 34998409
There is another simple way,
Write as follows;

Redirect permanent /site2/ /
0
 
LVL 8

Author Closing Comment

by:wal_toor
ID: 35392159
Thanks all, sorry for the late respond.
0

Featured Post

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses

622 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