answersLogoWhite

0


Want this question answered?

Be notified when an answer is posted

Add your answer:

Earn +20 pts
Q: Which Rewriterule in htaccess file is used for this website in which the question appeares after URL?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you password protect your website?

The best way is to use .htaccess


Why do some sites work with sitename.com but some other sites need the www in www.sitename.com?

Several PossibilitiesThe site specified in their .htaccess file on their server/host that the address must contain the www in order to execute the pages. Others may specify in this same file that the address does not require the www. See the codes below for both options. There's a record on the server that the webmaster needs to have to enable "http://sitename.com". Memory fails me as to what it is called. Think of it as splitting the IP number assigned.--> Edit:You need to specify the server alias in the httpd.conf or vhosts.conf ( here inside the directive ). Assume you use the form: ServerAlias sitename.com then you can use the directives below. In case you use *.sitename.com then any subdomain is valid to reach the main domain ( if you do not redirect them somewhere else ). Thus, make it without the *Requiring No WWWAdd this code to your .htaccess file on your server for your website if you would like addresses without the www access your site: Options +FollowSymLinksRewriteEngine OnRewriteBase /RewriteCond %{HTTP_HOST} !^askapache\.com$ [NC]RewriteRule ^(.*)$ http://askapache.com/$1 [R=301,L]Require the WWWAdd this code to the same file to always require the www in the address to access your site: Options +FollowSymLinksRewriteEngine OnRewriteBase /RewriteCond %{HTTP_HOST} !^www\.askapache\.com$ [NC]RewriteRule ^(.*)$ http://www.askapache.com/$1 [R=301,L]Require the WWW without hardcodingOptions +FollowSymLinks RewriteEngine OnRewriteBase /RewriteCond %{HTTP_HOST} !^www\.[a-z-]+\.[a-z]{2,6} [NC]RewriteCond %{HTTP_HOST} ([a-z-]+\.[a-z]{2,6})$ [NC]RewriteRule ^/(.*)$ http://%1/$1 [R=301,L]


What is newest question on this website?

What is the newest question on this website? It's just been posted so therefore the newest question.


Why is this website named answers.com?

Because it is a question and answer website.


Why mybestzone is best Hindi question and answer website?

Mybestzone.com is India's First Hindi Question Answer Website. MyBestZone is Best Website In India And World


In which website civil engineering model question paper are in?

in which website previous year question papers are available?


Is this the right website?

If you are asking if wiki answers is a good question and answers website, then it would depend on what question you are looking for. If you think the answer to your question isn't well enough, maybe this isn't the right website for you.


How do you answer a question in this website?

To answer a question, click on the question being asked. Then click on the Answer Question button.


What is URL rewriting in PHP?

URL rewriting is a technique that allows you to use a URL that actually goes to another URL within the same website. This is used mostly in dynamic database generated websites so the final URL is more Search Engine friendly. Example: You have an online store selling widgets. The page for the red widgets is: www.yourwidgetstore.com/products.php?productID=50 Using URL rewrites you could change this to: www.yourwidgetstore.com/red-widgets.html Both of those links would go to the same place but the second one would have much more value to the search engines. To do this you need to be using the .htaccess file. Example: RewriteEngine On RewriteRule red-widgets\.html www.yourwidgetstore.com/products.php?productID=50 To avoid any duplicate links within your site, you would then only link to: www.yourwidgetstore.com/red-widgets.html


What is offered by the website Hoo?

There is no website called Hoo. I believe this question is referring to the inappropriate word Hoo, and should have been flagged. This question has no answer as the website does not exist.


Can you make a site free with this question thing?

No, you cannot make a free website using WikiAnswers. WikiAnswers is a question and answer site, not a website designer. You can ask a question how to make a free website, though, and you could get a good answer.


Why did Americans want to go after Japan first?

idkk the answer to that question that is why i came to this website to ask the question so that you people could answer the question for me!!! idkk the answer to that question that is why i came to this website to ask the question so that you people could answer the question for me!!! yea!!!!