Let say I want to refer to a restaurant page, I could use one of those 2 URLs for example:
1- /restaurants/123
2- /restaurants/Pizzeria-Mamma
URL 1 has the advantage to be a quick match because of the ID but it is not as descriptive as URL 2.
Does URL matter to search engines? I read somewhere that it is good to put the keywords in t...
I basically need to create a anchor that will navigate to a different port on the server. For instance, our server is hosted on domain.com:555, we need a link to navigate to domain.com:777. The catch is that it's not always domain.com. We can expect the DNS to malfunction, in which case we will use ip address to navigate like xx.xx.xx.xx...
If you use a full, SEO Friendly URL like http://example.com/talks/about/star-wars then you can expect your URL to get eaten up by the users that submit it to bit.ly and others.
So my question is, would it be better to create your own internal shortener for links and just ignore any SEO benefit of the URL keywords in exchange for the SEO...
Using javascript, is there a standard way to get the absolute path of an image, as
var src= img.getAttribute("src");
only returns the @src tag as it was declared in the HTML
thanks,
Pierre
...
I need to extract url from XML response. Here is the XML response:
<cloud xmlns:xlink="http://www.w3.org/1999/xlink">
<rootContainer xlink:href="https://api.example.net/v2/bucket/92FBC29C-344C-99CF-827E-1B5586A7F8E3"
xlink:type="simple"/>
</cloud>
I'm using C to write regex. Need help.
my output needs to be https://api...
Hi all,
I've been experiementing with URL rewriting in IIS 6 and 7. On IIS 6, I've been using ISAPI Rewrite 3 and am trying to map URLs for one subdomain to another e.g.
http://subdomain1.domain.com/*
would be mapped to:
http://subdomain2.domain.com/*
I've tried to achieve this using:
RewriteEngine on
RewriteCond Host: subdomain1....
I am using a user input string to create a url and I only want the url to contain lowercase letters and hyphens
e.g. example.com/this-is-a-url
In my model, I have added so far:
def to_param
name.downcase.gsub(" ", "-")
end
This makes it lowercase and hyphenated. How can I remove all illegal characters, such as '/"$£%& ...
I want to remove www. from my site url.
I have added this to .htaccess:
RewriteCond %{HTTP_HOST} ^www.mydomain.com$ [NC]
RewriteRule ^(.*)$ http://mydomain.com/$1 [R=301,L]
It works if I type www.domain.com/x but not if I type www.domain.com/x/y. The rewrite "eats" the x value.
Thanks for your help.
...
I created a site in 2 languages english (en) and arabic (ar). Whenever a visitor comes to mysite.com (index) he chooses a language and he will be either directed to ar.mysite.com or en.mysite.com ...the problem and you already know it, don't you? is that he is redirected to mysite.com/en/index.php instead of en.mysite.... and the same st...
Hi, I am trying to get the fade effect of my image slider plugin to work correctly with links.
At the moment the slider fades correctly however the links are failing to change. The first image is supposed to link to Google.com & the second link is supposed to link to Hotmail.com however both of them are linking to Hotmail.com only (the ...
such as create an inputStream from URL.openStream();
and read from it. what is the use of this information read?
When we create an URL object using an URL address, actually we are not setting up a connection between our java program and the URL on the internet, right?
Since no such connection is built (our 2 are isolated in other wor...
I think I can use the .htaccess file for this, but I've looked it up and not found anything useful. What I want to do is have my site redirect to a php page when a user types their username in the URL like:
example.com/username
And have it be the same as a PHP page like:
example.com/name.php?id=username
I'd like it to display as ex...
Hi, I have a website live cricket scores , in which dynamically i am controlling the news section.
I have my own custom build CMS system with PHP, where admin will add the news to the web portal.
If i generate the Sitemap, all dynamically created pages wont be added to the sitemap,
is this a good practice or do we need to add the dynam...
Hello,
I'm trying to do the following:
$string = "<object width=\"425\" height=\"350\">
<param name=\"movie\" value=\"http://www.youtube.com/v/1OtdDqF5rnI&autoplay=0\"></param>
<param name=\"wmode\" value=\"transparent\"></param>
<embed src=\"http://www.youtube.com/v/1OtdDqF5rnI...
For this line of code;
string link = HttpContext.Current.Server.MapPath("/Contract/Details/" + this.ContractId.ToString());
I get the physical pathname on C drive.
What I want is the url, ie
http://localhost:1234/Contract/Details/1
How do I get this?
...
I want the url of a user post to be like this:
example.com/users/username/post-name
How should I set this up?
Currently, the post model contains:
def to_param
name.parameterize
end
(to hyphenate the post name accordingly)
routes.rb contains:
map.resources :users
map.resources :posts
Preferably, I would like to say ...
So I ran through a lot of Django tuts and I seem to understand the basics.
I know everything about the urls.py.
But now I need to design the urls for the whole site.
It seems not as easy as I imagined.
I would like to achieve the following.
overall structure:
main-site/
main_site/projects/
main_site/projects/project1
/...
Could anyone recommend a preferred algorithm to use for URL shortening? I'm coding using PHP. Initially I thought about writing something that would start at a character such as "a" and iterate through requests, creating records in a database and therefore having to increment the character to b, c, d ... A, B and so on as appropriate.
H...
I have a simple put and get working, but can't seem to find how to do a delete? For reference, the put code is:
BufferedInputStream inStream = null;
FileOutputStream outStream = null;
try {
final String ftpConnectInfo = "ftp://"+user+":"+pass+"@"+destHost+"/"+destFilename+";type=i";
LOGGER.info("Connection String: {}", ftpCon...
Hi,
Using jQuery, while in the span element, without knowing post-383 id and class, how can I retrieve the url within the h2 a element?
The html code:
<div id="post-1383" class="post-1383>
<h2 class="entry-title">
<a href="http://example.com/soul-music/">Soul Music</a>
</h2>
<span class="btn"></span>
</div>
Something like this?
$...