Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Remove part of url with htaccess

Posted on 2011-02-28
3
Medium Priority
?
533 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 750 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 750 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
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 several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses

719 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