How to rewrite subfolder to root folder in web.config

This forum is for issues with installing Joomla! 2.5 (All 1.6 and 1.7 releases have reached end of life and should be updated to 2.5.) on IIS webservers.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
User avatar
syhussaini
Joomla! Explorer
Joomla! Explorer
Posts: 402
Joined: Sat Jan 03, 2009 2:20 pm
Location: Hyderabad-India
Contact:

How to rewrite subfolder to root folder in web.config

Post by syhussaini » Thu Apr 17, 2014 3:20 pm

After successfully deploying a site, I've moved it from Sub-Folder to root. Now each time I try access anything, it would have the sub-folder name in the URL. How can I remove it.

Ex: If I am accessing an about-us page both URL's work well i.e.

1. osmaniconstructions.com/about-us.html and
2. osmaniconstructions.com/osmaniconstructionswebsite/about-us.html

I am trying to find ways to remove /osmaniconstructionswebsite/ from the above URL.

Following are the details of my Hosting:
OPERATING SYSTEM: WINDOWS
PHP VERSION: 5.3
IIS VERSION: IIS 7.0
.NET VERSION: ASP.Net 4.0/4.5
web.config enabled (renamed)

Any help will be highly appreciated.

Regards
Syed H
Last edited by syhussaini on Thu Apr 17, 2014 3:24 pm, edited 1 time in total.

User avatar
syhussaini
Joomla! Explorer
Joomla! Explorer
Posts: 402
Joined: Sat Jan 03, 2009 2:20 pm
Location: Hyderabad-India
Contact:

Re: How to rewrite subfolder to root folder in web.config

Post by syhussaini » Thu Apr 17, 2014 3:23 pm

Additional information:

The first URL I mentioned i.e. osmaniconstructions.com/about-us.html is manually entered however the other URL i.e. osmaniconstructions.com/osmaniconstructionswebsite/about-us.html is automatically loaded.

Please help.

User avatar
dpacadmin
Joomla! Champion
Joomla! Champion
Posts: 6029
Joined: Sat Aug 16, 2008 1:46 pm
Location: the Bat Cave
Contact:

Re: How to rewrite subfolder to root folder in web.config

Post by dpacadmin » Thu Apr 17, 2014 6:12 pm

You have posted to the wrong forum, hopefully a Moderator can move your post;
http://forum.joomla.org/viewforum.php?f=543

User avatar
syhussaini
Joomla! Explorer
Joomla! Explorer
Posts: 402
Joined: Sat Jan 03, 2009 2:20 pm
Location: Hyderabad-India
Contact:

Re: How to rewrite subfolder to root folder in web.config

Post by syhussaini » Sat Apr 19, 2014 11:01 am

Is this forum not for Joomla 2.5?
I thought I posted in 2.5....

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 24985
Joined: Mon Oct 27, 2008 9:27 pm
Location: Akershus, Norway

Re: How to rewrite subfolder to root folder in web.config

Post by Per Yngve Berg » Sat Apr 19, 2014 1:29 pm

Mod. Note: Relocated the topic from J1.5 to the installation of 2.5 on IIS web server

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 24985
Joined: Mon Oct 27, 2008 9:27 pm
Location: Akershus, Norway

Re: How to rewrite subfolder to root folder in web.config

Post by Per Yngve Berg » Sat Apr 19, 2014 1:32 pm

1. Have you cleared the Joomla! Cache?
2. Have you edited temp and log path in configuration.php?
3. Try to set the $ live_site in configuration.php

User avatar
syhussaini
Joomla! Explorer
Joomla! Explorer
Posts: 402
Joined: Sat Jan 03, 2009 2:20 pm
Location: Hyderabad-India
Contact:

Re: How to rewrite subfolder to root folder in web.config

Post by syhussaini » Sat Apr 19, 2014 2:38 pm

Per,

Thank you for a quick response, I've cross verified the config file, looks right to me.
Please help.


Locked

Return to “Joomla! 2.5 on IIS webserver”