seo

rewriting simple html files for SEO friendly URLS

流过昼夜 提交于 2019-12-11 20:46:15
问题 I have a simple file mydomain.com/business_nottingham.html and i want to re-write that to an SEO friendly URL, eg mydomain.com/business-nottingham/ I've googled all the examples but they seem to be designed for either CMSes or PHP scripts. Is there a simple .htaccess re-write example available that allows me to do something very simple as above? Edit: I managed to find the following code finally Options +FollowSymlinks RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST

How to remove parameters from the root URL if it does I18n

馋奶兔 提交于 2019-12-11 20:21:19
问题 Outdated (at least for Google) Recently I studied SEO a bit and found out that search engines somehow "don't like" parameters in the URL. Comprehensible since they aren't really human readable or tend to not be permanent. The problem now is, what if I followed the Rails Guides to set up I18n and then want to link to the root_path . It links to the root but adds a ?locale=en to the URL. So http://www.example.com/?locale=de . Even if SEO isn't affected about this anymore, I think it looks much

How to avoid duplicate content mapping urls with htaccess

最后都变了- 提交于 2019-12-11 20:00:39
问题 I'm kind of new to writing htaccess rules. I want to make the urls in my website as simple as possible. Let's say I want to "map" /home/ directory for root domain. So, http://www.domain.com would display content from /home/ directory without changing url. Moreover, I don't want users / google to access to: http://www.domain.com/home/, so, if somebody goes to that URL, I want to redirect them back to my root domain: http://www.domain.com. I'm seeing that google is indexing both directories

redirecting old site pages to single page on dnn portal

只谈情不闲聊 提交于 2019-12-11 19:19:41
问题 We are using Community Edition of DNN. There is old site with bunch of html, aspx pages that should (not all of them though) redirect to single (default) page in new DNN portal v7.1 (301 redirect). Here is an example: www.mysite.com/hello.html -> www.mysite.com www.mysite.com/mypath/hello.html -> same as above the same with.aspx pages -> same as above www.mysite.com/mypath -> same as above Is it possible to implement the goal using features of DNN CE or ASP.NET itself? So far only two things

Creating static, SEO friendly URLs with mod-rewrite

▼魔方 西西 提交于 2019-12-11 19:13:30
问题 Okay I have revised a previous question to make my intentions more clear and hopefully to help others wishing to do similar things. Let's say I have a digital download store, I want my URL's to look like this: downloads.com/music/this-song-name/3873 // A url to a unique track downloads.com/music/featured-stuff // A url that links to unique content downloads.com/music // The homepage for that section I could also have a url like this downloads.com/videos/this-video/3876 etc. Now, Server side,

Issue with subdomains and htaccess for SEO

戏子无情 提交于 2019-12-11 18:42:16
问题 I would like to change urls from: http://subdomain.domain.com/page/ to http://subdomain.domain.com/?page=pagename and also: http://domain.com/page/ to http://domain.com/?page=pagename though haven't had much success. Here is my htaccess file so far [updated] Options +FollowSymlinks -MultiViews RewriteEngine On RewriteBase / # Remove 'www' RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] RewriteRule ^(.*)$ http://%1/$1 [R=301,L] # Add slashes RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST

Using mod_rewrite to Convert Dynamic URLs to SEO Friendly URLs ??

浪子不回头ぞ 提交于 2019-12-11 18:19:45
问题 I am not a PHP developer and I have been asked to perform some SEO . Here Is My .htaccess RewriteEngine On RewriteBase / RewriteRule [_\ ] space.cgi [L] ErrorDocument 404 /errors/404.php ErrorDocument 400 /errors/badrequest.php ErrorDocument 401 /errors/authreqd.php ErrorDocument 403 /errors/forbid.php ErrorDocument 500 /errors/serverr.php ErrorDocument 503 /errors/ServiceUnavailable.php RewriteEngine On RewriteCond %{HTTP_USER_AGENT} ^BlackWidow [OR] RewriteCond %{HTTP_USER_AGENT} ^Bot\

How do I configure SEO for a dynamic container component?

你离开我真会死。 提交于 2019-12-11 17:23:28
问题 My application uses an external API to get information about a lake. This information is displayed in a dynamic container component called LakeComponent. The application needs to know the code of the lake before it can use the API to populate this page. It can be obtained through a 'site search via name' using the same API. How can I return my application in a google search based on a lake when there is no dedicated component for it? E.g. search in Google is 'trinity river' - how can I return

How to redirect from an old php script to a new php script using mod_rewrite

馋奶兔 提交于 2019-12-11 13:57:24
问题 It's my first request here and hopefully I won't upset anyone. Here's my story: I have looked all over this place for a solution and wasn't able to find one. Here's hoping that someone can give some input. I've basically managed to use Apache's mod_rewrite to create SEO-Friendly urls for my website. E.g. Old path www.hostname/index1.php?session=user is now rewritten as www.hostname/user , which results into a SEO Friendly URL address. However, the old path is still valid. I need to somehow

Spring Webflow 2 and bookmarkable URLs

此生再无相见时 提交于 2019-12-11 13:44:13
问题 Currently due to the Post/Redirect/Get pattern all flow urls are something like <site_url>/flow_name?execution=? and input GET parameters are not preserved. Thus the users can't copy the url, or bookmark it. Any suggestions how could this be done neatly ? 回答1: We can bookmark a SWF based application's URL by customising FlowHandlerAdapter of SWF API. Here is a sample: My SWF configuration file would have: <bean id="flowController" class="org.springframework.webflow.mvc.servlet.FlowController"