Rewrite subdomain to subdomain/folder in vhost situation?

With the following code everything you type after the domain will be appended to /index. Php/abc abc.domain. Com/URL -> abc.domain.Com/index.

Php/abc/URL abc.domain. Com/URL/ -> abc.domain.Com/index. Php/abc/URL/ abc.domain.

Com/URL/URL -> abc.domain.Com/index. Php/abc/URL/URL abc.domain. Com/URL/URL/ -> abc.domain.Com/index.

Php/abc/URL/URL Rewrite code: RewriteCond %{HTTP_HOST} ^(abc).domain. Com RewriteCond %{REQUEST_FILENAME}! -f RewriteCond %{REQUEST_FILENAME}!

-d RewriteRule ^(.*)$ /index. Php/%1$1 NC,L.

With the following code everything you type after the domain will be appended to /index. Php/abc abc.domain. Com/URL -> abc.domain.Com/index.

Php/abc/URL abc.domain. Com/URL/ -> abc.domain.Com/index. Php/abc/URL/ abc.domain.

Com/URL/URL -> abc.domain.Com/index. Php/abc/URL/URL abc.domain. Com/URL/URL/ -> abc.domain.Com/index.

Php/abc/URL/URL/ Rewrite code: RewriteCond %{HTTP_HOST} ^(abc).domain. Com RewriteCond %{REQUEST_FILENAME}! -f RewriteCond %{REQUEST_FILENAME}!

-d RewriteRule ^(.*)$ /index. Php/%1$1 NC,L.

Thanks, but no... the situation is: abc.domain. Com -> abc.domain. Com/index.

Php/abc ( or domain.com/index.php/abc ) to be more complete: abc.domain. Com/features -> abc.domain. Com/index.

Php/abc/features ( or domain.com/index.php/abc/features ) and abc.domain. Com/features/feature -> abc.domain. Com/index.

Php/abc/features/feature ( or domain.com/index.php/abc/features/feature ) – MissMarvels Aug 22 '09 at 13:11 Adjusted my answer accordingly – Fabian Aug 22 '09 at 20:21.

Try this rule in your . Htaccess file: RewriteCond %{HTTP_HOST} ^(^. /+)\.

Example\. Com$ RewriteRule ^index\. Php$ index.

Php/%1%{REQUEST_URI} L.

I'm trying to rewrite abc.example.com/path to abc.example.com/index.php/abc/path using the following . I don't want index. Php/abc/ to be shown in the URL.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions