Discussion:
[TYPO3-english] Trying to get realurl to work
Tim Shelley
2013-08-22 11:20:44 UTC
Permalink
Hi,

I recently installed the realurl extension to give our website better and human readable URLs but it does not seem to work.

This is what I have done so far, have I missed anything:

mod_rewrite enabled in apache2
AllowOverride set to FileInfo
htaccess file contains the rewrite rules as found in http://wiki.typo3.org/Realurl/manual. My website is located locally at http://localhost/testwebsite. So the .htaccess I modified lives in /var/www/testwebsite
restarted apache2
imported and installed the realurl extension

On one of the pages on my website the field "Speaking URL path segment" has now appeared and I set that as page.html.

When I go to the website and to that page it is still showing http://localhost/testwebsite/index.php?id=90 rather than http://localhost/testwebsite/page.html.

Does anyone know what I have missed or done wrong? Thanks.
Richard Davies
2013-08-22 22:05:01 UTC
Permalink
Hi Tim,

AllowOverride set to 'all' in virtual host configuration? Realurl generates
correct URLS without mod_rewrite enabled - they just won't 'link' to the
right place without mod_rewrite. If you want to make sure mod_rewrite is
working anyway, go into the install tool and check phpinfo for mod_rewrite.

Realurl configuration:

- check Typoscript setup for config.tx_realurl_enable = 1 in root
template
- Make sure you have created domain records on your site root page.
- Clear website cache. If that doesn't work, uninstall realurl, clear
cache, view frontend website, reinstall, clear cache, view website.

If you are still having issues, please send: realurl version, Typo3 version.

Richard
Post by Tim Shelley
Hi,
I recently installed the realurl extension to give our website better and
human readable URLs but it does not seem to work.
mod_rewrite enabled in apache2
AllowOverride set to FileInfo
htaccess file contains the rewrite rules as found in
http://wiki.typo3.org/Realurl/**manual<http://wiki.typo3.org/Realurl/manual>.
My website is located locally at http://localhost/testwebsite. So the
.htaccess I modified lives in /var/www/testwebsite
restarted apache2
imported and installed the realurl extension
On one of the pages on my website the field "Speaking URL path segment"
has now appeared and I set that as page.html.
When I go to the website and to that page it is still showing
http://localhost/testwebsite/**index.php?id=90<http://localhost/testwebsite/index.php?id=90>rather than
http://localhost/testwebsite/**page.html<http://localhost/testwebsite/page.html>
.
Does anyone know what I have missed or done wrong? Thanks.
______________________________**_________________
TYPO3-english mailing list
TYPO3-english at lists.typo3.org
http://lists.typo3.org/cgi-**bin/mailman/listinfo/typo3-**english<http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english>
Tim Shelley
2013-08-23 09:22:20 UTC
Permalink
Hi,

Thanks for the reply I've got a little further:

I added localhost as a domain record to the root page.

I have added the config items to the root template (it was in the template for just that page).

Now when I navigate to the page I get:

localhost/testwebsite/90

Rather than:

localhost/testwebsite/page.html - the page.html is specified in the page Speaking URL path segment field.
Jigal van Hemert
2013-08-23 12:00:31 UTC
Permalink
Hi,
Post by Tim Shelley
localhost/testwebsite/90
Usually this happens when RealURL can't find the configuration for the
domain. If you have a _DEFAULT_ entry instead of a domain in your
realurl_conf.php it's best to convert it to a configuration based on the
domain name (see RealURL manual).
--
Jigal van Hemert
TYPO3 CMS Active Contributor

TYPO3 .... inspiring people to share!
Get involved: typo3.org
azdour
2013-08-29 13:58:18 UTC
Permalink
Hi,

I've been able to move on from:

localhost/testwebsite/90

to

localhost/testwebsite/page/

If I use the page alias field. But I am still looking to get my real urls to look like the following:

localhost/testwebsite/page.html

"If you have a _DEFAULT_ entry instead of a domain in your realurl_conf.php it's best to convert it to a configuration based on the
domain name (see RealURL manual)."

Not sure I understand. I think what I am looking for is how to configure filenames for different pagetypes, because its the filename that is page.html. It would be good to see examples of how to do this, thanks.
Dmitry Dulepov
2013-08-30 05:16:10 UTC
Permalink
Hi!
Post by azdour
localhost/testwebsite/page/
If I use the page alias field. But I am still looking to get my real
localhost/testwebsite/page.html
It is described in the manual, how to make it. Read the manual, please :)
It is useful.
--
Dmitry Dulepov

Today is a good day to have a good day.
Sinsia
2013-08-30 07:00:03 UTC
Permalink
Hi Azdour,

InRealUrl configuration under filename add this line
"'defaultToHTMLsuffixOnPrev' => 1," like in example:

'fileName' => array(
'index' => array(
//ajout pour printlink :
'print.html' => array(
'keyValues' => array(
type=> 98,
)
),
),
'_DEFAULT' => array(
'keyValues' => array(
)
),
// add .html suffix to the end of the path generated
'defaultToHTMLsuffixOnPrev' => 1,
),
),


Best regards,
Sinisa
Post by Dmitry Dulepov
Hi!
Post by azdour
localhost/testwebsite/page/
If I use the page alias field. But I am still looking to get my real
localhost/testwebsite/page.html
It is described in the manual, how to make it. Read the manual, please
:) It is useful.
azdour
2013-09-05 11:11:08 UTC
Permalink
Hi ,

Dmitry - trust me I did Google the issue and read the extension manual before resorting to this forum :)

Sinisa - thanks

I will give the manual another read.
Dmitry Dulepov
2013-09-09 05:42:18 UTC
Permalink
Hi!
Post by azdour
Dmitry - trust me I did Google the issue and read the extension manual
before resorting to this forum :)
Don't google. Read the manual. There is an option exactly for that. There
is absolutely no need to google this.
--
Dmitry Dulepov

Today is a good day to have a good day.
Ralf-Rene Schröder
2013-09-09 09:29:04 UTC
Permalink
Post by Dmitry Dulepov
Post by azdour
Dmitry - trust me I did Google the issue and read the extension manual
before resorting to this forum :)
Don't google. Read the manual. There is an option exactly for that.
There is absolutely no need to google this.
just to show you where:
http://typo3.org/extension-manuals/realurl/1.12.6/view/1/2/#idp7958448
--
image[FORMAT] - Ralf-Ren? Schr?der
http://www.image-format.eu ... Wir geben Ihrem Image das richtige Format
Dmitry Dulepov
2013-09-10 06:42:45 UTC
Permalink
Hi!
It could be better if he found this himself :) He would have to really read
the doc. While reading, he could discover things that could help him in
future to avoid googling :)
--
Dmitry Dulepov

Today is a good day to have a good day.
amadeo Marketing &amp; Design - Paul Garais
2013-09-10 08:36:54 UTC
Permalink
For education of people who are ... let's say a bit lazy ... you could use: http://lmgtfy.com/ ...
works out great ;)
Hi!
It could be better if he found this himself :) He would have to really read the doc. While
reading, he could discover things that could help him in future to avoid googling :)
azdour
2013-09-10 11:51:30 UTC
Permalink
Hi,

Just to be clear I did read the doc before resorting to Google. I think my problem is that for some reason I'm having trouble wrapping my head around it. Not sure why just waiting for that magic moment when things click into place.

Within typo3 when editing the page where do I place the filename that should be known/displayed? The alias field does not allow the '.' character.
Dmitry Dulepov
2013-09-11 10:44:27 UTC
Permalink
Hi!
Post by azdour
Within typo3 when editing the page where do I place the filename that
should be known/displayed? The alias field does not allow the '.'
character.
Name is the alias field, extension is added automatically, you configure it
in the RealURL configuration. So if you configure 'html' and alias is
'love', than you will get 'love.html' automatically like this:

http://example.com/love.html
http://example.com/love/forever.html
--
Dmitry Dulepov

Today is a good day to have a good day.
Continue reading on narkive:
Search results for '[TYPO3-english] Trying to get realurl to work' (Questions and Answers)
3
replies
dresses for my body type?
started 2013-12-22 13:15:03 UTC
fashion & accessories
Loading...