Joomla! Discussion Forums



It is currently Wed Nov 25, 2009 10:30 am (All times are UTC )

 




Post new topic Reply to topic  [ 8 posts ] 
Author Message
Posted: Fri Aug 15, 2008 3:29 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Fri Aug 15, 2008 3:22 pm
Posts: 2
I have a Joomla Joomla 1.5 installed on:
mydomain.com/Joomlafolder/
After a SEF module installation, all url's of the site where placed at:
www.mydomain.com/joomlafolder/url.html
I want to remove the joomlafolder from the url.

I cant make joomla directory as my root folder because my main index.php file is not joomla's index.php, and I can not have two index.php in my root folder.

How can i solve it?

Thanks in advance and best regards,


Top
  E-mail  
 
Posted: Fri Aug 15, 2008 7:53 pm 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Tue Dec 19, 2006 6:37 pm
Posts: 380
Location: Grinnell, Iowa
The only solutions I can think of would be to either just rename "joomlafolder" to something less obvious like "main" or something and still have that subfolder in the url or to do similar and create a subdomain pointing to that folder...

Otherwise you're trying to have one url that points to two different places, which doesn't work...

8)

_________________
******************************************************
Do you have the latest stable version? Get it now! http://joomlacode.org/gf/project/joomla/frs/
Problem solved?? Remember to mark you original post with the "solved" icon.


Top
  E-mail  
 
Posted: Fri Aug 15, 2008 8:06 pm 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Sat Apr 26, 2008 6:05 am
Posts: 275
Location: New Jersey
Either put it on your DocumentRoot or create a new virtual server with your domain. Give more details about the situation. If you are using .htaccess use the rewrite /joomla

-adam


Top
  E-mail  
 
Posted: Sat Aug 16, 2008 1:35 am 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Fri Aug 15, 2008 3:22 pm
Posts: 2
Hi,

Thanks for your reply. Actually I have already running one portal for few years and existing links are having good ranking in search engines. If I install joomla is root folder, i can keep the same url for the joomla article as previous one by using smartsef. Here the problem is that, my main index.php page of the portal is not in joomla template and because of that, i must install the joomla is subfolder.

Now if i dont hide the subfolder in joomla, smartsef will add the joomla folder name in url and that will defeat my purpose of preserving the original URL.

I am using smartsef and .htaccess to rewrite /joomla.

I hope this make more clear where I am now.

Your help is highly appreciated.

Regards


Top
  E-mail  
 
Posted: Sat Aug 16, 2008 3:16 am 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Sat Apr 26, 2008 6:05 am
Posts: 275
Location: New Jersey
I found joomla default SEF to work better from 3rd party sef extensions. I still dont get the different index.php from joomla. Can you post the link?


Top
  E-mail  
 
Posted: Sat Aug 16, 2008 6:41 pm 
User avatar
Joomla! Champion
Joomla! Champion
Offline

Joined: Wed Aug 17, 2005 10:27 pm
Posts: 6262
Location: Kent, England
[Mod Note] Moved from Installation Questions. see: Which Forum Should You Post In? for details on the appropriate forum to post your question

_________________
Andy Wallace Author of the J! 1.5 Installation Manual http://joomlacode.org/gf/download/docmanfileversion/664/17471/1.5_Installation_Manual_version_0.5.pdf
Joomla! Day UK 2009. Visit the official site http://joomladay.org.uk
Register at the site to receive regular updates.


Top
   
 
Posted: Sat Nov 07, 2009 1:02 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Oct 12, 2009 2:44 pm
Posts: 11
Location: Dublin, Ire
Hi,

I have joomla 1.5.14 installed in subfolder joomla of my domain, let say domain.com.

I have standard SEF enabled, mod_rewrite and with suffixes added to URL.

$live_site parameter in configuration.php is pointed to my domain.com

Below my .htaccess file:

Code:
RewriteEngine On

######moje:
# remove "www" (this may be optional)
RewriteCond %{HTTP_HOST} ^www\.domain.com$ [NC]
RewriteRule ^(.*)$ http://domain.com/$1 [R=301]

# Redirect to the Joomla root folder
RewriteCond %{HTTP_HOST} ^(www\.)?domain.com$ [NC]
RewriteRule ^(index\.html)?$ http://domain.com/joomla/ [R=301]

# Only apply to URLs on this domain
RewriteCond %{HTTP_HOST} ^(www\.)?domain.com$

# Only apply to URLs that aren't already under folder
RewriteCond %{REQUEST_URI} !^/joomla/

# Don't apply to URLs that go to existing files or folders
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# Rewrite all those to insert /joomla
RewriteRule ^(.*)$ /joomla/$1 [L]

########## 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 /joomla/


########## 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


Everything runs great, except that search (mod_search) doesn't work. When typing anything to search box, I'm getting: Not Found The requested URL /index.php was not found on this server. instead of proper search results (URL in address bar is http://domain.com/index.php).

Has anyone experienced similar issue?

_________________
http://sierakowski.eu | Action Script Developer blog


Top
  E-mail  
 
Posted: Sat Nov 07, 2009 1:24 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Oct 12, 2009 2:44 pm
Posts: 11
Location: Dublin, Ire
Ok, accidentally I fixed it. I had index.php.20090912 file in the root that was some old backup of my previous website. I removed it and joomla search works fine now with all the setting as in the post above.

_________________
http://sierakowski.eu | Action Script Developer blog


Top
  E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

Quick reply

 



Who is online

Users browsing this forum: KHA_HMO_South, universalckcs and 19 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group