newbie trying to write url rewite in .htaccess file
Posted
by user297975
on Stack Overflow
See other posts from Stack Overflow
or by user297975
Published on 2010-03-21T15:16:45Z
Indexed on
2010/03/21
15:21 UTC
Read the original article
Hit count: 374
url-rewriting
|.htaccess
My site was under example.com/waha/ Now I move the site right under the root example.com
I want to 301 redirect all the old links like example.com/waha/notice/5803 to example.com/notice/5803
How can I do it?
My current .htaccess file is below.
<IfModule mod_rewrite.c>
RewriteEngine On
# NOTE: change this to your actual StatusNet path; may be "/".
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php?p=$1 [QSA,L]
</IfModule>
<FilesMatch "\.(ini)">
Order allow,deny
</FilesMatch>
Options -Indexes
© Stack Overflow or respective owner