Rewrite rule for specific url address
hello
I use Joomla CMS and one of his user management component generate this kind of url:
http://www.mysite.com/menu-link-to-p...rofile/mikefoo
Instead to get this long url, I would like make it more shorter like simply this:
www.mysite.com/mikefoo
I know is possible to rewrite url using .htaccess but don't know how to do for this specific case. In theory is necessary to remove the /menu-link-to-profile/userprofile/ url...
Any suggestions please?
thank in advance
hai friends
we are using this url rewire web.config file , it was not working
any one can rectify this error
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="RewriteUserFriendlyURL2" stopProcessing="true">
<match url="^1/([^/]+)/([^/]+)/?$" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="gallshow.php?type={R:1}&id={R:2}" />
</rule>
<rule name="RewriteUserFriendlyURL3" stopProcessing="true">
<match url="^2/([^/]+)/([^/]+)/([^/]+)/?$" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="imagegall.php?type={R:1}&id={R:2}&start={R:3}" />
</rule>
<rule name="RewriteUserFriendlyURL4" stopProcessing="true">
<match url="^Hollywood-Actress-Photos$" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="Hollywood-Actress-Photos.php" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Bookmarks