Activity Stream
48,167 MEMBERS
6535 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 4 of 4
  1.     
    #1
    Member
    Website's:
    Elite.SO Defendos.com Motionite.com

    Default .htaccess Help Please

    Hey, I need some help with my htaccess file which is not working properly.

    I got this:

    Code: 
    RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://motionite.com/$1 [R,L]RewriteRule ^estonia  estonia.html
    RewriteRule ^estoniavps  estoniavps.html
    If I go to http://domain.com/estonia it redirects to estonia.html
    http://domain.com/estoniavps redirects to estonia.html too, but it must redirect to: estoniavps.html
    Thanks

    l0calh0st Reviewed by l0calh0st on . .htaccess Help Please Hey, I need some help with my htaccess file which is not working properly. I got this: RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://motionite.com/$1 RewriteRule ^estonia estonia.html RewriteRule ^estoniavps estoniavps.htmlIf I go to http://domain.com/estonia it redirects to estonia.html http://domain.com/estoniavps redirects to estonia.html too, but it must redirect to: estoniavps.html Thanks Rating: 5

    Defendos BETA3 Released! Thread - Official Website

  2.   Sponsored Links

  3.     
    #2
    Member
    I suppose you want to make mod_rewrite URL's?

    RewriteRule ^estonia([\/_-])?$ estoniavps.html

    And estoniavps.html will be /estonia, and when you go motionite.com/estonia, it will work..

  4.     
    #3
    Member
    Website's:
    Elite.SO Defendos.com Motionite.com
    Thanks Jason, gonna try that out!

    Defendos BETA3 Released! Thread - Official Website

  5.     
    #4
    Member
    Quote Originally Posted by Jason View Post
    I suppose you want to make mod_rewrite URL's?

    RewriteRule ^estonia([\/_-])?$ estoniavps.html

    And estoniavps.html will be /estonia, and when you go motionite.com/estonia, it will work..
    That'll match *one or none* of the characters in the character class (\, /, _ or -).

    Just do two rules
    Code: 
    RewriteRule ^estonia/?$ /estonia.html
    RewriteRule ^estoniavps/?$ /estoniavps.html
    Not sure if the leading / is needed on the location of the actual file.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Vb Seo .htaccess Help
    By sunnyx12x21x in forum vBulletin
    Replies: 9
    Last Post: 17th Jul 2011, 11:25 AM
  2. help with htaccess
    By softleaks in forum Webmaster Discussion
    Replies: 2
    Last Post: 3rd Jun 2011, 06:43 PM
  3. Help with .htaccess
    By woja in forum vBulletin
    Replies: 1
    Last Post: 25th Jan 2011, 11:11 PM
  4. .htaccess help.!
    By vorazeal in forum Webmaster Discussion
    Replies: 1
    Last Post: 25th Dec 2010, 05:59 PM
  5. .htaccess help
    By Nemesis in forum Webmaster Discussion
    Replies: 1
    Last Post: 21st Mar 2010, 07:13 PM

Tags for this Thread

BE SOCIAL