English 中文(简体)
a.htaccess to two subdirectories
原标题:.htaccess to two subdirectories
  • 时间:2011-10-03 06:06:41
  •  标签:
  • .htaccess

我正试图控制访问我的网站。 我有两个网站:一个网站有一字压缩博客,另一个网站有维基站点,把我的主.com/wordpress和我的主.com/wiki放置。

我想,在http://adressebar.(前言是正确的)。

The wiki-site should just be shown under /wiki.

我已经尝试了许多解决办法(也涉及停滞不前),但迄今没有任何工作。

RewriteEngine On
RewriteBase /mydomain.com/

# WIKI
RewriteCond %{REQUEST_FILENAME} !-f    # Existing File
RewriteCond %{REQUEST_FILENAME} !-d    # Existing Directory
RewriteRule ^wiki/(.*)$ wiki/index.php?title=$1 [L,QSA]

# WORDPRESS
# RewriteCond %{REQUEST_FILENAME} !-f    # Existing File
# RewriteCond %{REQUEST_FILENAME} !-d    # Existing Directory
# RewriteRule ^/*$ /wordpress/index.php [L,QSA]

http://www.ohchr.org。

www.mydomain.com -> www.mydomain.com/wordpress
www.mydomain.com/wiki/(.*)$ -> www.mydomain.com/wiki/index.php?title=$1
问题回答

简单回答——你可以这样做,因为,你可以说,你有一点点。

<代码>http://www.yourdoamain.com/index.php - 您预计会受到什么样的害-维基或博客?





相关问题
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:...

热门标签