0
Welcome Guest! Login
0 items Join Now

help with sef

    • xyzer me's Avatar
    • xyzer me
    • Sr. Rocketeer
    • Posts: 165
    • Thanks: 0

    help with sef

    Posted 16 years 1 month ago
    • Here I have another question! :arrow: the website I am working on is not search engine friendly now.

      I have about 500 articles in it. and it is gonna be more than 2000 as members would continually submit articles. Now I wanna make this site SEF. also when I enable SEF option links are gone and they mostly do not work. I want to use jmsitemap for it and hope would help. what do you think if I use that component will I have any problems and also will I need to change anything in htacces.txt file and any other possible surprises for me and any other thing I need to know.

      Your help is appreciated.
      -Gurban
    • JEM's Avatar
    • JEM
    • Preeminent Rocketeer
    • Posts: 17917
    • Thanks: 4

    Re: help with sef

    Posted 16 years 1 month ago
    • Is your site loaded to the root, or in a folder within the htaccess or public-html folder?

      If its in a folder, you need to change the # RewriteBase / to reflect the path of your site.

      Change:

      # RewriteBase /

      to:

      RewriteBase /(the name of the folder joomla is in)
    • Thanks,
      jim
    • xyzer me's Avatar
    • xyzer me
    • Sr. Rocketeer
    • Posts: 165
    • Thanks: 0

    Re: help with sef

    Posted 16 years 1 month ago
    • here is my joomla installation location. i this link there is an image you will see it.

      haydarov.net/index.php?option=com_conten...rticle&id=2&Itemid=4

      also my htaccess file contains:


      ##
      # @version $Id: htaccess.txt 10492 2008-07-02 06:38:28Z ircmaxell $
      # @package Joomla
      # @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
      # @license www.gnu.org/copyleft/gpl.html GNU/GPL
      # Joomla! is Free Software
      ##


      #####################################################
      # READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE
      #
      # The line just below this section: 'Options +FollowSymLinks' may cause problems
      # with some server configurations. It is required for use of mod_rewrite, but may already
      # be set by your server administrator in a way that dissallows changing it in
      # your .htaccess file. If using it causes your server to error out, comment it out (add # to
      # beginning of line), reload your site in your browser and test your sef url's. If they work,
      # it has been set by your server administrator and you do not need it set here.
      #
      #####################################################

      ## Can be commented out if causes errors, see notes above.
      Options +FollowSymLinks

      #
      # mod_rewrite in use

      RewriteEngine On

      ########## Begin - Rewrite rules to block out some common exploits
      ## If you experience problems on your site block out the operations listed below
      ## This attempts to block the most common type of exploit `attempts` to Joomla!
      #
      # Block out any script trying to set a mosConfig value through the URL
      RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
      # Block out any script trying to base64_encode crap to send via URL
      RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
      # Block out any script that includes a <script> tag in URL
      RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
      # Block out any script trying to set a PHP GLOBALS variable via URL
      RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
      # Block out any script trying to modify a _REQUEST variable via URL
      RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
      # Send all blocked request to homepage with 403 Forbidden error!
      RewriteRule ^(.*)$ index.php [F,L]
      #
      ########## End - Rewrite rules to block out some common exploits

      # Uncomment following line if your webserver's URL
      # is not directly related to physical file paths.
      # Update Your Joomla! Directory (just / for root)

      # RewriteBase /


      ########## Begin - Joomla! core SEF Section
      #
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteCond %{REQUEST_URI} !^/index.php
      RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$ [NC]
      RewriteRule (.*) index.php
      RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
      #
      ########## End - Joomla! core SEF Section
    • JEM's Avatar
    • JEM
    • Preeminent Rocketeer
    • Posts: 17917
    • Thanks: 4

    Re: help with sef

    Posted 16 years 1 month ago
    • The question is where is Joomla installed?

      in htdocs or public_html?

      or

      htdocs/joomla

      public_html/joomla
    • Thanks,
      jim
    • xyzer me's Avatar
    • xyzer me
    • Sr. Rocketeer
    • Posts: 165
    • Thanks: 0

    Re: help with sef

    Posted 16 years 1 month ago
    • Oh OK it is in folder:
      foldername: htdocs/designme
    • JEM's Avatar
    • JEM
    • Preeminent Rocketeer
    • Posts: 17917
    • Thanks: 4

    Re: help with sef

    Posted 16 years 1 month ago
    • Have you renamed htaccess.test to .htaccess in your joomla (designme) folder?

      If no, do so.

      if so, go to .htaccess:

      Change:

      # RewriteBase /

      to:

      RewriteBase /designme
    • Thanks,
      jim
    • xyzer me's Avatar
    • xyzer me
    • Sr. Rocketeer
    • Posts: 165
    • Thanks: 0

    Re: help with sef

    Posted 16 years 1 month ago
    • first I renamed it and its gone
      I can not see the file htacces anymore

      where it can be :oops:
    • xyzer me's Avatar
    • xyzer me
    • Sr. Rocketeer
    • Posts: 165
    • Thanks: 0

    Re: help with sef

    Posted 16 years 1 month ago
    • I can reupload it after i add folder name

      I have it on my desktop, should I?
    • JEM's Avatar
    • JEM
    • Preeminent Rocketeer
    • Posts: 17917
    • Thanks: 4

    Re: help with sef

    Posted 16 years 1 month ago
    • What host are you using?

      Some hosts hide 'dot' files unless you specify they be shown, e.g., HostGator.
    • Thanks,
      jim
    • xyzer me's Avatar
    • xyzer me
    • Sr. Rocketeer
    • Posts: 165
    • Thanks: 0

    Re: help with sef

    Posted 16 years 1 month ago
    • 1and1.com

Time to create page: 0.063 seconds