This is the url of my page http://cbiance.com/wordpress/. Is there a way to hide 'wordpress' in the url or change it to something?
Thanks
The "/wordpress/" is the dir of the page. You can either
Rename the dir and change all the referring documents fo correct it (This includes any other page that links to it and Configuration files like your apache.conf for example.
You could also move the page to the location of url that you would like and redirect from the current page, allowing old links to remain valid.
Use configuration of your apache.conf (or whatever your using) to chang your root dir to this location turning the current URL into "
http://cbiance.com/
The third is the preffered method.
Related
If someone wants to go to the main website, he should be redirected to /getting-started
```location = / {
return 301 /getting-started;
}```
but the /getting-started should bring the stuff from /basics like
```location = /getting-started {
rewrite "/getting-started" /basics/ last;
}````
and the url should remain /getting-started
So all in all desired result is
On going to root, the page should load stuff from /basics but the url should change to /getting-started. Now that also means if a user directly enters /getting-started, he will be served stuff from /basics while user will see the same url (/getting-started)
Now I was able to do this using the code above.
Problem is
When the page is loaded, there are several links in it that should have path /basics/something.
But when I click the link, it become /something (NOT /basics/something). (as we are on /basics page even though the url remains /getting-started)
and so desired page does not load.
Its only happening when Im doing this redirection of root page. Please suggest how can it be fixed.
I have created a basic page in drupal 7 to use as my 404. I configured under Configuration -> System -> Site Information to use this page and when an unknown URL is entered, it does indeed display this page while maintaining the unknown URL. For SEO purposes, I really want Page Not Found in the html title tags but it is missing. If you go directly to the basic page, the title tags are correct. Is there a setting somewhere that I am missing?
I used the metatag module's configuration for the 404 page to achieve the desired title tags
When you create a any page, you will get node id of the respective page.
In your case, you need to copy page.tpl.php file and rename new file with your node id like for example : page--node--1.tpl.php
Now, put below code in your newly created template file and clear the cache.
if($title) {
print $title;
}
How to remove 'catalog' from url, for example
my site
http://[my_site_address]/catalog
shows me all categories in unbercart.
I want to change 'catalog' from url and replace it to 'store'
I try to change it from view but it is not changing.
Guide me I am new to drupal.
You can make a new URL Alias under Configuration with the path module. It's part of Drupal core, and may already be enabled.
For the rest of the catalog (for e.g www.site.com/catalog/1), you should use this Path Auto http://drupal.org/project/pathauto module to take effect.
I am interested how to prevent one page of a website to not get indexed by Google, or any other robots.
In my script i have the template with TPL files , Index.tpl , Header.tpl ....
So how do i tell google not to index page : login.tpl
Thank you
If you want a specific URL (or a directory) no not be indexes by crawlers, a simple solution is to use a robots.txt file -- which will allow you to specify what can, and cannot, be indexed.
For more informations, see About /robots.txt
For example, if you want a crawler not to index the /my-page.php URL, you could use something like this in your robots.txt file :
User-agent: *
Disallow: /my-page.php
As a sidenote : files that should not be visible from end-users (like include files, libraries, non-interpreted templates, ...) should not be served by your webserver : no-one should be available to access those.
If using Apache, using a .htaccess file in a given folder (provided this feature is enabled), you can prevent Apache from serving any file from that folder :
Deny from All
Note : nothing will be served by Apache from the directory that contains a .htaccess file with that content !
This is not correct. The robots.txt does not tell crawlers what to index and what not to index. That's what you use the meta-robots tag for. Have it serve noindex and you're good.
See for example and further reading: http://yoast.com/x-robots-tag-play/
I know i am late for the answers but this could help others also
below is the more precise answer that you will see.
I am considering that you are using wordpress for your site.
You can use wordpress "CUSTOM FIELD" option.(you can find details here)
The first thing you need to do is add the following code to the head section of your theme’s header.php template.
And copy the below code
<?php
$noindex = get_post_meta($post->ID, 'noindex-page', true);
if ($noindex) {
echo '<meta name="robots" content="noindex,follow" />';
}
?>
Now all you need to do is specify a custom field entitled noindex-page and assign a value to it. It doesn’t matter what you enter. All you need to do is ensure that something is entered in the field so that the custom field noindex-page returns as true in the code you specified in your header.
please keep this in mind, this will also work for posts
I have an htm page.There i have a link Moreinfo.When we click that link it will go to aspx page.Means here the link Moreinfo More Info... when we click that link it has to go reg.aspx.But its not going,,error is shopwing page not found
Means In my project,i have index.htm.From this page when i click Moreinfo link,,it has to go reg.aspx..How i can go..I copied this proj from my collegue
Nothing is working .both index.htm and reg.aspx are in same site 'b'
Are you sure the path of the link is correct? The link you have here is showing http://localhost/akki/akki/b/reg.aspx - are you sure there are supposed to be two "akki"s in the path?
the error means that the aspx page does not exist at the link you are pointing to. either you have given a wrong link or your aspx page does not exist on the path you intend to.