Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
htaccess redirect question (Joomla)
Old 01-02-2010, 11:57 PM htaccess redirect question (Joomla)
Average Talker

Posts: 22
Trades: 0
Hello,

I am trying to redirect links that look like this:

http://www.domain.com/index.php?opti...n&view=article

to SEF links (using sh404sef) that look like this:
http://domain.com/index.php/webpage.html

Can anyone give me examples on how the htaccess page should look with the info above?

Thanks in advance
sam18204 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-03-2010, 06:53 AM Re: htaccess redirect question (Joomla)
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,382
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
http://www.highrankings.com/forum/in...showtopic=5644

All manner of htaccess code there.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 01-04-2010, 11:49 PM Re: htaccess redirect question (Joomla)
Experienced Talker

Posts: 45
Trades: 0
  1. Edit the contents of the file. Check the following examples:
  2. Point an entire site to a different URL, such as domain.net redirected to domain.com:
# This allows you to redirect your entire website to any other domain Redirect 301 / http://kb.mediatemple.net/
  • Redirect index.html to a specific subfolder:
    # This allows you to redirect index.html to a specific subfolderRedirect /index.html http://mt-example.com/newdirectory/
  • Redirect an old file to a new file path:
    # Redirect old file path to new file pathRedirect /olddirectory/oldfile.html http://mt-example.com/newdirectory/newfile.html
  • Redirect to a specific index page:
    # Provide Specific Index Page (Set the default handler)DirectoryIndex index.html
  • Redirect users to access the site without www:
    # To redirect all users to access the site WITHOUT the www. prefix,# (http://www.example.com/... will be redirected to http://example.com/...)# adapt and uncomment the following:RewriteEngine OnRewriteCond %{HTTP_HOST} ^www\.mt-example\.com$ [NC]RewriteRule ^(.*)$ http://mt-example.com/$1 [L,R=301]
  • Redirect users to use www:
    # To redirect all users to access the site WITH the www. prefix,# (http://example.com/... will be redirected to http://www.example.com/...)# adapt and uncomment the following:RewriteEngine OnRewriteCond %{HTTP_HOST} !^www\.mt-example\.com$ [NC]RewriteRule ^(.*)$ http://www.mt-example.com/$1 [L,R=301]
  • Redirect viewers of your domain to use the secure version of your domain:
    # An easy to way to always redirect the user to secure connection (https://) can be accomplished with the following lines:RewriteEngine OnRewriteCond %{SERVER_PORT} 80RewriteRule ^(.*)$ https://www.mt-example.com/$1 [R,L]
  • Redirect users to use https:// for a particular folder:
    # In case you wish to force HTTPS for a particular folder you can use the following:RewriteEngine OnRewriteCond %{SERVER_PORT} 80RewriteCond %{REQUEST_URI} somefolderRewriteRule ^(.*)$ https://www.mt-example.com/somefolder/$1 [R,L]
  1. Now upload the file to your root folder of your site and be sure to rename it to .htaccess without any filename extension.
  2. Make sure that your redirect functions properly.
Plz visit:

http://kb.mediatemple.net/questions/...access+file%3F
__________________

Please login or register to view this content. Registration is FREE

Last edited by printrobin; 01-04-2010 at 11:52 PM..
printrobin is offline
Reply With Quote
View Public Profile Visit printrobin's homepage!
 
Old 01-05-2010, 05:12 AM Re: htaccess redirect question (Joomla)
Novice Talker

Posts: 9
Trades: 0
hello mate, you don't need to go through much hassle. just go to global configuration then SEO Settings then click the radio button that says "YES" to "Search Engine Friendly URLs" and you are good to go.

good luck.
__________________

Please login or register to view this content. Registration is FREE
dravalley.com is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to htaccess redirect question (Joomla)
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.24039 seconds with 12 queries