Results 1 to 18 of 18

Thread: Problem with Clean URLs

  1. #1

    Default Problem with Clean URLs

    Greetings,

    I have problems when working in local and then upload the files to the server and activate the clean URLs you can not view the website.

    The problem is when I rename the file server. Just home from my site but is no internal page.

    What has happened that?

    Thank you
    Contao is the best CMS there is. Support your community in Spanish
    http://www.contaoespanol.com
    I do not speak English but I try to help with a translator

  2. #2
    User
    Join Date
    06-19-09.
    Posts
    41

    Default Re: Problem with Clean URLs

    Hi tecnomaster,
    I have to admit that I don't really understand these two sentences:
    The problem is when I rename the file server. Just home from my site but is no internal page.
    ?

    Does that mean that you had TL in a subdirectory on your local server and that on the webserver it's directly in the root folder or in differently named subfolder ? Then you have to adjust the RewriteBase in your .htaccess file.


    cheers
    Antipitch

  3. #3

    Default Re: Problem with Clean URLs

    Hi Antipitch,

    Excuse the mistakes but I do not speak English and I use a translator :D

    I have built my site on my local PC with WAMP server. I do not have clean URLs enabled in local mode.

    When uploading files to my server on the internet everything works fine but when I enable clean URLs throughout the site stops working.

    That always happens and I do not know what the problem is.

    Thank you
    Contao is the best CMS there is. Support your community in Spanish
    http://www.contaoespanol.com
    I do not speak English but I try to help with a translator

  4. #4
    User
    Join Date
    06-19-09.
    Location
    Kosice, Slovakia
    Posts
    61

    Default Re: Problem with Clean URLs

    Rename ._htaccess to .htaccess and make sure that mod_rewrite is enabled and apache reads .htaccess files (you need hosting plan that supports these features).
    S.C.A.R.E

  5. #5

    Default Re: Problem with Clean URLs

    Yes, when I enable clean URLs also rename the file to _htaccess. htaccess but it does not work.

    To return to see the site running I delete the file. Htaccess just rename and disable clean URLs.

    The most strange is that I always happens, is not an installation that presents the problem. Everything I do in the local site and then upload to the server but this feature does not work if you work directly on the Internet server, everything works correctly.

    I do not understand happens ...
    Contao is the best CMS there is. Support your community in Spanish
    http://www.contaoespanol.com
    I do not speak English but I try to help with a translator

  6. #6
    User
    Join Date
    06-19-09.
    Location
    Kosice, Slovakia
    Posts
    61

    Default Re: Problem with Clean URLs

    Ok, so don't enable friendly urls, just rename ._htaccess to .htaccess. Does your site work in this case?
    S.C.A.R.E

  7. #7

    Default Re: Problem with Clean URLs

    Quote Originally Posted by scare
    Ok, so don't enable friendly urls, just rename ._htaccess to .htaccess. Does your site work in this case?
    In this case the site continues to operate unless all the flash files. But not to activate the URL from the administration remains the same.
    Contao is the best CMS there is. Support your community in Spanish
    http://www.contaoespanol.com
    I do not speak English but I try to help with a translator

  8. #8
    User FloB's Avatar
    Join Date
    06-21-09.
    Posts
    157

    Default Re: Problem with Clean URLs

    Is mod_rewrite activated on your server? If not, it won' work.

  9. #9

    Default Re: Problem with Clean URLs

    Quote Originally Posted by FloB
    Is mod_rewrite activated on your server? If not, it won' work.
    This active

    If I do a clean installation of the server typolight everything works properly.

    The only problem is when I import a web site done on my local server.
    Contao is the best CMS there is. Support your community in Spanish
    http://www.contaoespanol.com
    I do not speak English but I try to help with a translator

  10. #10
    User FloB's Avatar
    Join Date
    06-21-09.
    Posts
    157

    Default Re: Problem with Clean URLs

    Did you use the install tool after moving the site? Maybe the websitePath variable is set incorrectly? Check this variable in the backend -> settings or localconfig.php .

  11. #11

    Default Re: Problem with Clean URLs

    Quote Originally Posted by FloB
    Did you use the install tool after moving the site? Maybe the websitePath variable is set incorrectly? Check this variable in the backend -> settings or localconfig.php .

    Do not use the installation tool. The website is uploaded manually and import the database from phpmyadmin.

    Entire site works well unless the clean URL.

    I reviewed the parameters of localconfig and everything is correct.

    I think something is wrong with the file .htaccess
    Contao is the best CMS there is. Support your community in Spanish
    http://www.contaoespanol.com
    I do not speak English but I try to help with a translator

  12. #12
    User FloB's Avatar
    Join Date
    06-21-09.
    Posts
    157

    Default Re: Problem with Clean URLs

    Just run the Installation Tool. This should reset some parameters.

  13. #13

    Default Re: Problem with Clean URLs

    Quote Originally Posted by FloB
    Just run the Installation Tool. This should reset some parameters.
    Not working friend

    I fail to make clean URLs work and is perfectly configured apache server.

    And do not find that ... :cry: :cry: :cry:
    Contao is the best CMS there is. Support your community in Spanish
    http://www.contaoespanol.com
    I do not speak English but I try to help with a translator

  14. #14
    User FloB's Avatar
    Join Date
    06-21-09.
    Posts
    157

    Default Re: Problem with Clean URLs

    Any error messages? Did you check the Apache's log files?

  15. #15

    Default Re: Problem with Clean URLs

    Quote Originally Posted by FloB
    Any error messages? Did you check the Apache's log files?
    The error is 404, it can not find the page requested
    Contao is the best CMS there is. Support your community in Spanish
    http://www.contaoespanol.com
    I do not speak English but I try to help with a translator

  16. #16
    User FloB's Avatar
    Join Date
    06-21-09.
    Posts
    157

    Default Re: Problem with Clean URLs

    Well, mod_rewrite does not work. Is the .htaccess file up-to-date and correctly spelled (watch the dot before htaccess!)?

  17. #17

    Default Re: Problem with Clean URLs

    Quote Originally Posted by FloB
    Well, mod_rewrite does not work. Is the .htaccess file up-to-date and correctly spelled (watch the dot before htaccess!)?
    I have installed on the same server multiple facilities clean url typolight and work perfectly.

    The only difference is that the facilities were operating properly with version 2.6 and were made directly on the server.

    The problem is with version 2.7 and when I moved the site from localhost to the main server.
    Contao is the best CMS there is. Support your community in Spanish
    http://www.contaoespanol.com
    I do not speak English but I try to help with a translator

  18. #18
    User FloB's Avatar
    Join Date
    06-21-09.
    Posts
    157

    Default Re: Problem with Clean URLs

    The description still leads me to thinking that either the rewrite rule is not applied, or the websitepath is not set correctly, or both. I cannot help you anymore. Maybe you can contact your hoster – he might help.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •