Need help on 301 redirect.


GeDaS
 Share

Recommended Posts

Hi,

I created .htaccess file on Home Directory.

I've written this in the file

Options +FollowSymlinks

RewriteEngine on

rewritecond %{http_host} ^www.mydomain.info [nc]

rewriterule ^(.*)$ http://mydomain.info $1 [r=301,nc]

Saved the file.

However whenever I check the website www.mydomain.info it still doesn't redirect to http://mydomain.info.

Please, need you guidance. Never created and messed around with .htaccess file before.

Link to comment
Share on other sites

Ok, that really didn't help. Maybe I'm putting .htaccess file in wrong directory? It's in directory accessible from cpanel "File Manager Directory Selection" and choosing "Home Directory". Is it in right directory, or should I put it somewhere else? Is it ok if .htaccess file only contains lines that you wrote, or should it contain anything else too?

Link to comment
Share on other sites

Ok, that really didn't help. Maybe I'm putting .htaccess file in wrong directory? It's in directory accessible from cpanel "File Manager Directory Selection" and choosing "Home Directory". Is it in right directory, or should I put it somewhere else? Is it ok if .htaccess file only contains lines that you wrote, or should it contain anything else too?

It should be in the root directory of your website.. so something along the lines of:


public_html/.htaccess
[/code]

Link to comment
Share on other sites

  • 3 weeks later...

ah yeah i havent put the end if there... i just want to know if this syntax

if this_key is "field2" then

set f2 to this_value

is correct. Its correct. Values stored.

Next question..

i know i can do openssl and:

Code:set y to do shell script "echo " & x & " openssl bf -d -salt -a -pass pass:" & Password1 & ""but

is it possible to do mdecrypt with shell script?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share