Solved

Remove part of url with htaccess

Posted on 2011-02-28
3
527 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
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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
lunix and unix command 21 115
Samba Question 11 103
When trying to install php-fpm on CentOS 7 - GPG error 2 90
simple bash script needed to unpack tar.gz 4 26
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
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…
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…

740 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