www.webdeveloper.com
Results 1 to 3 of 3

Thread: Rewrite rules with htaccess

  1. #1
    Join Date
    Sep 2005
    Posts
    1,635

    Question Rewrite rules with htaccess

    I have coded like:
    Options +FollowSymlinks
    RewriteEngine On
    #
    RewriteCond %{QUERY_STRING} ^id=myvatax1$
    RewriteRUle ^en-GB/myprofile/index.php?$ http://www.mydomain.com/mypage1.php [R=301,L]
    #
    RewriteCond %{HTTP_HOST} ^mydomain\.com [NC]
    RewriteRule ^(.*)$ http://www.mydomain.com/$1 [R=301,L]

    Why this does not work as rewrite as it does not redirect to correct landing page like:
    http://www.mydomain.com/en-GB/myprof...x.php?myvatax1

  2. #2
    Join Date
    Jun 2009
    Posts
    127
    You will need to check the apache error logs for the exact error message.

  3. #3
    Join Date
    Sep 2005
    Posts
    1,635
    There is any error just redirect is to firstpage.php not landing page...

Thread Information

Users Browsing this Thread

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles