I have a trouble in mod_rewrite redirect. I want to create friendly SEO links for my component. Now linkk looks like that:
http://www.mytestsite.com/index.php?option=com_mycomponent&task=show_posts&evid=11&Itemid=200&year=2013&month=10&day=15&title=this-is-really-test-article-here&uid=43840300d283724e77d5f33f19780f36&catids=15|16|17|18&filter_reset=1
I want to have:
http://www.mytestsite.com/posts/200-this-is-really-test-article-here
where first part of URL is itemid (200), and after article title.
How can i do that?
In Joomla, this is done in the administrator control panel by editing the site configuration (Site...Global Configuration). Click on the SEO tab and check the desired options, save and you're done.
If you need more options, try installing an SEO extension
Do make sure that you have a .htaccess file in the root of your web server home directory.
Also make sure that adequate file permissions are set, so that php/joomla can write to .htaccess and add mod_rewrite rules. I would recommend setting .htaccess file permission to 644. If that doesn't work, come back and ask again!
For Search Engine Keyword selection, this tutorial should be sufficient (skip to step 3): http://moz.com/blog/seo-your-joomla-website-in-11-super-easy-steps
A useful link to test if mod_rewrite is enabled on your webserver: http://docs.joomla.org/How_to_check_if_mod_rewrite_is_enabled_on_your_server
Related
So i have created a plugin that gets data from a API and creates posts. For example posts urls are similar to following structure .
https://sitesite.net/invite/username
About 100 posts are created this way and the only thing differs is the username. I want to redirect all
urls with /invite to a certain another url.
What is the best way to do this? Please consider that i'm new to wordpress.
So far i've tried some plugins like Redirection plugin and SEO Redirection Premium plugins. But i could not find a way to redirect all the urls with /invite in the url to another url. Both these plugins can set the source url and redirect to another url. But it's not practical for me as i have 100s of urls.
How can i redirect all my urls to another url .
The best way is to do it directly in your .htaccess file in the root folder of your Wordpress installation.
The following rewrite rule will redirect all pages in your invite folder to the same page in another folder called newfolder:
RewriteRule ^invite/(.*)$ /newfolder/$1 [R=302,NC,L]
Note the R=302 - make sure you use this for testing and only change it to a permanent 301 redirect when you are sure everything works!
(The .htaccess is not a Wordpress file, standard file on your web hosting. But if you’re not familiar with it, it’s a very important file to make your site work, so check back with us if you’re unsure of anything before you change it and always make a backup before ANY changes to it!!)
I would like to share with my project and get your opinions. I developed the project which needs to be launched through IIS. The problem is with linking to other pages. In fact, I partially managed to solve the problem, but so far by 30%. Authorization to the index.php main page is successful, but when you go to all other pages (for example, the "List of applications" page), error 404 appears.I send screenshots of the project. I can’t figure out why such an error comes out, I will be glad to hear your offers.
To resolve this issue try to follow some below steps:
1)make sure you installed php in iis.
2)Select site in ii manager and select directory browsing feature and enable it from the action pane.
3)after enabling it select site again and right-click on it and select Explore option and check that you are looking for file or folder is available or not.
and if you have .htaccess file and rewrite rules in it than install URL rewrite module in iis and import the .htaccess file in iis URL rewrite.
4) make sure that your site folder has iis_iusr and iusr permission.
To import the .htaccess file in iis:
1)Select site in iis.
2) select url rewrite module.
3)select import rule from the action pane.
4)Copy-paste your .htaccess file or select it under “rewrite rules” or select .htaccess file from “Configuration file”.
I'm relatively new to htaccess files and I'm trying to get my URL to look SEO friendly.
It says to change my htaccess.txt to .htaccess to allow URL overwrite but I have multiple htaccess files and don't know which to switch and what to do.
My goal is to get from:
http://www.sunshineorlandorentals.com/component/bookman/?PropertyId=1609
to:
http://www.sunshineorlandorentals.com/location/1609
Don't be confused about the multiple .htaccess files. The only file which is working is without any extension that means .htaccess is the right file. You can delete other .htaccess.txt files. Download them before Delete as Backup.
To redirect your current url to new one -- Simply ADD below line of code into your .htaccess file.
Redirect 301 /pagename.php http://www.example.com/pagename.html
Here pagename.php is your old url without Domain name
and pagename.html is new url with same Domain name, Replace example.com with yours one.
And your new Url http://www.sunshineorlandorentals.com/location/1609 is completely Seo friendly. Try to make all your urls like same in future.
Thanks
Just ignore all other files.
You just need to enable sef urls and sef rewrites on Joomla sites (in joomla config setting).
Create new hidden menu with alias 'location' pointing to your component that's it.
PhpInfo shows that the Apache Rewrite module is activated.
In the backoffice the simplified URLS option is activated.
But still urls are in the form of index.php?q=user
What could be other possible reasons for this?
Make sure the webserver are write permission on Prestashop installation directory. I fit do not, it will not be able to write down the .htaccess file.
I created a wordpress blog. Its is working fine in local.
When i copied the same to server expect index page nothing is working. i.e, when i open a new page(ex: "domain.com/contact") it throws "The requested URL /index.php was not found on this server.". I changed all the URL like site url, etc ..
you need to change in .htaccess file, text after "dRewriteRule".
i.e,
Before : dRewriteRule . /blog/index.php
After : dRewriteRule . /proj_folder/blog/index.php
Here "/proj_folder" is the project folder you kept "blog" files.
make sure that the link is correct.
Just to provide a clear answer based on Shakti's comment...
It looks like your WP installation is configured to use a custom permalink structure which requires mod_rewrite. It may be that your server does not support mod_rewrite, or the settings are not enabled in .htaccess.
Check that your .htaccess file was uploaded when you migrated the site and that the correct settings are present. If not you can disable custom permalinks by logging in to WP Admin, going to Options and Permalinks, then choosing the Default option.