English 中文(简体)
Htaccess redirect
原标题:Htaccess redirect
  • 时间:2010-11-14 21:39:14
  •  标签:
  • .htaccess

Hey folks, I m migrating a website over a to new CMS with a different URL structure, I d like to have users redirect if a specific part of the link is missing. So if the user goes to www.domain.com/articles/name_of_article it ll take them to the old site, however if they go to www.domain.com/ it ll forward them to the subdirectory http://beta.domain.com So what I m trying to accomplish is to leave the old URLs active as to not lose traffic from old links since migrating those links is impossible because of how the old CMS was coded..but prompt the user to move over to the new site when they land on those pages.

如何通过通道做到这一点,将非常赞赏任何捷径?

你们的帮助!

最佳回答
RewriteEngine on
RedirectMatch ^/$ http://beta.domain.com/

...... 答案比问题更简单。

问题回答

暂无回答




相关问题
Ignore symlinks in clean URL s in .htaccess

Example URL: example.com/user /user is both a symlinked directory and a valid URL to content on my site. I user Horde Routes to request the content and all requests to the site go through index.php. ...

.htaccess File Options -Indexes on Subdirectories

I have the following .htaccess line, simple no indexes on root. Options -Indexes What do we add so it propagates to any sub directory instead of having to create one file for each? One .htaccess on ...

Mod Rewrite ignoring -d

After a day or two, I am still fighting with Mod Rewrite. It seems that 60% of my development time is spent battling the server. My current URL structure is such that all http://example.com/xyz and ...

ErrorDocument 404 Not Sending Referrer Information: PHP

I m using a standard htaccess ErrorDocument 404 to redirect users to a new page. In order to customize the 404, I need to know their referrer information (from the page they Tried to visit). $...

Find all htaccess files on server [closed]

I m looking for a Linux command to go through all the directories on my server and find all .htaccess files. The output would be a list of all those files with full path, creation/modification date ...

301 Redirect Help with Dynamic URL s and Multiple Id s

I just did a redesign for www.wildchildclothes.com which has a new URL structure. The old site ran on Zen Cart and had a bad URL structure. Here are some examples of what I want to redirect from: OLD:...

热门标签