speaking url is not working inside subfolder

speaking url is not working inside subfolder

am 19.01.2010 17:28:19 von joydeep

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 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: speaking url is not working inside subfolder

am 20.01.2010 10:19:24 von Krist van Besien

On Tue, Jan 19, 2010 at 5:28 PM, J. Bakshi 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 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: speaking url is not working inside subfolder

am 20.01.2010 12:06:11 von joydeep

On Wed, 20 Jan 2010 10:19:24 +0100
Krist van Besien wrote:

> On Tue, Jan 19, 2010 at 5:28 PM, J. Bakshi
> 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 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: speaking url is not working inside subfolder

am 20.01.2010 23:59:18 von Devraj Mukherjee

Hi,

On Wed, Jan 20, 2010 at 3:28 AM, J. Bakshi 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 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: speaking url is not working inside subfolder

am 21.01.2010 04:04:06 von joydeep

Devraj Mukherjee wrote:
> Hi,
>
> On Wed, Jan 20, 2010 at 3:28 AM, J. Bakshi 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 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