You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "J. Bakshi" <jo...@infoservices.in> on 2010/01/19 17:28:19 UTC

[users@httpd] speaking url is not working inside subfolder

Dear list,

I like to utilize my hosting space with multiple domains. one of these
domain is for typo3 sites. So I have created folders inside
public_html to have individual site. I am using .htaccess to redirect
the domain to its concerned subfolder.  There is a folder called TYPO3
inside which the typo3 installation is located. For typo3 sites I have
the following in .htaccess

` ` `
Options +FollowSymLinks
RewriteEngine on

# domain for typo3

RewriteCond %{HTTP_HOST} ^(www.)domain.in$
RewriteCond %{REQUEST_URI} !^/TYPO3/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.*)$ /TYPO3/$1
RewriteCond %{HTTP_HOST} ^(www.)domain.in$
RewriteRule ^(/)?$ TYPO3/index.php [L]

` ` `

The .htccess successfully redirects the concerned domain into the
sub-folder (TYPO3) . But the problem is with speaking url. Clicking on any
links always and always goes to the very first page. 

If I place the typo3 installation directly at public_html without domain-to-subfolder
redirection it works perfectly well. Am I missing something which prevents speaking url in subfolder ?

Thanks 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] speaking url is not working inside subfolder

Posted by "J. Bakshi" <jo...@infoservices.in>.
On Wed, 20 Jan 2010 10:19:24 +0100
Krist van Besien <kr...@gmail.com> wrote:

> On Tue, Jan 19, 2010 at 5:28 PM, J. Bakshi <jo...@infoservices.in>
> wrote:
> 
> > The .htccess successfully redirects the concerned domain into the
> > sub-folder (TYPO3) . But the problem is with speaking url. Clicking
> > on any links always and always goes to the very first page.
> 
> Waht is a "speaking url"?
> Could it be that your problem simply is that Typo3 is unaware it
> exists in a subfolder, and thus creates URLs that do not start with
> TYPO3?
> 
> Krist
>

"speaking url" or "real url" is human understandable url. Say http://mydomain.com/?index.php=43 will be http://mydomain.com/homepage.html

Your point is relevant as typo3 speaking-url is working well from public_html but not from public_html/TYPO3 folder. .htaccess is already there in public_html to handle the redirection, then what else do I need to fix it ? My .htacces is

` ` `
Options +FollowSymLinks
RewriteEngine on

# domain for typo3

RewriteCond %{HTTP_HOST} ^(www.)domain.in$
RewriteCond %{REQUEST_URI} !^/TYPO3/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.*)$ /TYPO3/$1
RewriteCond %{HTTP_HOST} ^(www.)domain.in$
RewriteRule ^(/)?$ TYPO3/index.php [L]

` ` `

Thanks

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] speaking url is not working inside subfolder

Posted by Krist van Besien <kr...@gmail.com>.
On Tue, Jan 19, 2010 at 5:28 PM, J. Bakshi <jo...@infoservices.in> wrote:

> The .htccess successfully redirects the concerned domain into the
> sub-folder (TYPO3) . But the problem is with speaking url. Clicking on any
> links always and always goes to the very first page.

Waht is a "speaking url"?
Could it be that your problem simply is that Typo3 is unaware it
exists in a subfolder, and thus creates URLs that do not start with
TYPO3?

Krist



-- 
krist.vanbesien@gmail.com
krist@vanbesien.org
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] speaking url is not working inside subfolder

Posted by "J. Bakshi" <jo...@infoservices.in>.
Devraj Mukherjee wrote:
> Hi,
>
> On Wed, Jan 20, 2010 at 3:28 AM, J. Bakshi <jo...@infoservices.in> wrote:
>   
>> Dear list,
>>
>> Options +FollowSymLinks
>> RewriteEngine on
>>
>> # domain for typo3
>>
>> RewriteCond %{HTTP_HOST} ^(www.)domain.in$
>> RewriteCond %{REQUEST_URI} !^/TYPO3/
>> RewriteCond %{REQUEST_FILENAME} !-f
>> RewriteCond %{REQUEST_FILENAME} !-d
>> RewriteCond %{REQUEST_FILENAME} !-l
>> RewriteRule ^(.*)$ /TYPO3/$1
>> RewriteCond %{HTTP_HOST} ^(www.)domain.in$
>> RewriteRule ^(/)?$ TYPO3/index.php [L]
>>
>>     
>
> You question is specific to TYPO3 and I believe you would get better
> support on their list. We run a few TYPO3 site and use the following
> rewrite rule to support what you refer to as "speaking urls".
>
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteCond %{REQUEST_FILENAME} !-l
> RewriteRule (\.html|/)$ /index.php
>
>   

The configuration you have mentioned here are shipped with typo3 and I
have already included in my part.  But my question is specific to a
domain running inside a subfolder  public_html/TYPO3/  where  the
speaking url is not working and working well outside i.e at public_html/

Thanks

-- 
জয়দীপ বক্সী


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] speaking url is not working inside subfolder

Posted by Devraj Mukherjee <de...@gmail.com>.
Hi,

On Wed, Jan 20, 2010 at 3:28 AM, J. Bakshi <jo...@infoservices.in> wrote:
> Dear list,
>
> Options +FollowSymLinks
> RewriteEngine on
>
> # domain for typo3
>
> RewriteCond %{HTTP_HOST} ^(www.)domain.in$
> RewriteCond %{REQUEST_URI} !^/TYPO3/
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteCond %{REQUEST_FILENAME} !-l
> RewriteRule ^(.*)$ /TYPO3/$1
> RewriteCond %{HTTP_HOST} ^(www.)domain.in$
> RewriteRule ^(/)?$ TYPO3/index.php [L]
>

You question is specific to TYPO3 and I believe you would get better
support on their list. We run a few TYPO3 site and use the following
rewrite rule to support what you refer to as "speaking urls".

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule (\.html|/)$ /index.php

-- 
Follow me on Twitter, http://twitter.com/mdevraj

"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org