+ Reply to Thread
Results 1 to 3 of 3

Thread: htaccess question

  1. #1
    hải yến 93
    Guest

    htaccess question

    Hello,



    The following code state a domain myblog.com. Is it possible not to specify on any domain? I want all domains, instead of only myblog.com. Thanks.



    Options Indexes

    Options FollowSymLinks

    RewriteEngine on

    RewriteCond %{HTTP_HOST} ^myblog\.com

    RewriteRule ^(.*)$ http://www.myblog.com/$1 [R=permanent,L]



    RewriteBase /

    RewriteCond %{REQUEST_FILENAME} !-f

    RewriteCond %{REQUEST_URI} !(.*)/$

    RewriteRule ^(.*)$ http://www.myblog.com/$1/ [L,R=301]
    More Information:
    1. 3 posts - 2 authors - Last post: Mar 8I followed the advice given to someone else and added a htaccess to my forum directory with the following content: Should I remove the htaccess
    2. htaccess question - How to access files in wp-content/plugins/*
    3. htaccess "bible" here at the Httpd Wiki (http://wiki
    4. 3 posts - 3 authors - Last post: Jan 8I have been told that i need to use this htaccess to inprove response time and also for less server strain on LP is it safe to use and will it help you think
    5. net" but when trying to access them, I get an Error 404 that I am pretty sure relates to the RewriteCond line in my htaccess file:
    6. The question mark means 'zero or one of the preceding character or range' — in other words either yourhtmlsource
    7. htaccess file, in the section where I block spammers by their user agent string since sometimes these
    8. NOT a presales question enable seo urls and rebuild the cach then see if rewrite works it is dependent upon the server if you have to edit the htaccess or not

    More:


  2. #2
    thancongbau
    Guest

    Change this line:

    Code:

    RewriteCond %{HTTP_HOST} ^myblog\.com

    To:

    Code:

    RewriteCond %{HTTP_HOST} !^www\.myblog\.com [NC]

    More Information:
    1. They added the following to my htaccess file and the page displayed successfully
    2. htaccess file is in the root folder as well as the index
    3. Just use a question mark inside the substitution string to indicate that the following stuff should be re-injected into the QUERY_STRING
    4. htaccess question] How do i get my pages indexed in google
    5. This seems easy, but htaccess looks like Greek (or Chinese, or Armenian,

+ Reply to Thread

Similar Threads

  1. need .htaccess help
    Ok heres what i need to do. I have a server which has 10 domains on it. I want each of the subdomains to have their own folder which has its own word...
  2. how would I? htaccess
    I can't figure out how to do this... I want to rewrite: /top/google/competition/ to /buzz/competition/ any ideas how I can do this? (for...
  3. .htaccess Rewrite question
    Hi, I am trying to redirect my non www version of the site to the www version but i saw some people are using 301 redirect, that looks like...
  4. .htaccess redirect question (reg. ex.)
    hi, im finally done with the new cms for one site, but now the paths are completely different. i know i can do some basic redirects with .htaccess...
  5. Without .HTACCESS
    I have a site which shows different PR when I write mysite . com and when I write www . mysite . com. I have windows hosting on 2003 server. my host...

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Automatic Translations (Powered by Powered by Google):
Afrikaans Albanian Arabic Belarusian Bulgarian Catalan Chinese Croatian Czech Danish Dutch English Estonian Filipino Finnish French Galician German Greek Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Taiwanese Thai Turkish Ukrainian Vietnamese Welsh Yiddish