Jump to content
xisto Community
Sign in to follow this  
Sarkara

Joomla Edit .htaccess To Friendly Html Mod Rewrite show dynamic URL as SEO friendly link

Recommended Posts

Ok guys i have a question. i'm using joomla and i need to change the urls from looking like:

index.php?option=com_content&view=article&id=1 index.php?option=com_content&view=category&id=13 index.php?option=com_content&view=section&id=1
to nice looking html extensions...I'm relativlely new to htaccess and sort of a noob at this.. :)

any help will be much appreciated

Share this post


Link to post
Share on other sites

Here we go:

http://www.webweaver.nu/html-tips/web-redirection.shtml

The first little example is what you need :)

Just type something like:

Redirect 301 /blog index.php?option=com_content&view=article&id=1 Redirect 301 /contact index.php?option=com_content&view=article&id=2 Redirect 301 /about index.php?option=com_content&view=article&id=3

Then if i go to yoursite.com/blog it will send me to yoursite.com/index.php?option=com_content&view=article&id=1

Note: Search engines dont like 301 redirects.... So it wont be the best method for your SEO but for a user it is so much better to remember /blog than /index.php?option=com_content&view=article&id=1 etc...
Edited by shadowx (see edit history)

Share this post


Link to post
Share on other sites

Ah ok, its something ive only used once as a little test to run a .htm page as a .php, but this link should see you straight: http://forums.xisto.com/no_longer_exists/

Share this post


Link to post
Share on other sites

I've looked at this website yesterday and it to doesn't give me the information i need. i'm using RewriteRule ^([^.]+)\.html$ $1.php [L] to rewrite the php of these urls:

index.php?option=com_content&view=article&id=1index.php?option=com_content&view=category&id=13index.php?option=com_content&view=section&id=1
to look more like a html hierachrical structure.. :/index.php/en/component/content/article/6-web-marketing/75-organic-website-submission-and-search-engine-optimization-seo.html

maybe what i'm trying to is more complicated because i'm using a cms.

Share this post


Link to post
Share on other sites

ok finally i'm trying to use these rewrite rules:

RewriteRule index/option/(.*)/view/(.*)/id/(.*)/catid/(.*)/Itemid/(.*)/lang/(.*)/ index.php?option=$1&view=$2&id=$3&catid=$4&Itemid=$5<=$6RewriteRule index/option/(.*)/view/(.*)/id/(.*)/catid/(.*)/Itemid/(.*)/lang/(.*) index.php?option=$1&view=$2&id=$3&catid=$4&Itemid=$5<=$6					RewriteRule index/option/(.*)/view/(.*)/id/(.*)/ index.php?option=$1&view=$2&id=$3RewriteRule index/option/(.*)/view/(.*)/id/(.*) index.php?option=$1&view=$2&id=$3
but they don't seem to be working as i want them to...any clues?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.