.htaccess file "SHOULD HAVE" - "BUT DON'T KNOW HOW" :)

6 replies
  • WEB DESIGN
  • |
The site: | mylink2.com

The problem:
Converted this domain which was a website link directory to a wordpress site as the website that was loaded to the domain developed an issue that wouldn't allow people to list their sites. To fix it I was quoted $500 and I don't have that kind of money *NZD $1,000

I had found, I thought, a good wordpress theme that was for a link directory, but it turns out it is not a wordpress theme so it was suggested to me by a kind Warrior that I look at using a plugin. I found a couple and decided on this one: Wordpress ODLinks Plugin | Forgani

These are some of his instructions:

Go to create and modify your Categories and Sub Categories under "ODLINKS Structure"
You will need to make the Smarty cache folders writable (chmod 777) :

./odlinks/includes/Smarty/cache
./odlinks/includes/Smarty/templates_c
I have done this
Create some child category. It is not possible to post to the parent category.
I have created one called 'odlinks'
Why the main site gives me the 404 or Not Found error message or I cannot see the "Submitt a link"?
If you go to the site you will see you can't submit a link - When you click on a category, it takes you to a post!
This usually occurs only when using a custom permalink structure (like /%category%/%postname%/).
I have made the permalink /%postname%/
This is a .htaccess 404 error message and you should update your .htaccess file in the WP root directory.

An example for htaccess code to redirect to odlinks
You need an .htaccess file. The file will be create/modify by wordpress via the Permalink/mod-rewrite option.

Please edit the .htaccess file in the root folder of your Wordpress.
You use the default .htaccess file and modify the file as follow:
The redirect should look something like this

#RewriteRule . /index.php [L]
RewriteRule !^(classified|odlinks)/ /index.php [L]
RewriteRule odlinks/([^/\(\)]*)/?([^/\(\)]*)/?([^/\(\)]*)/? /index.php?pagename=odlinks&_action=$1&id=$2&parent =$3 [QSA,L,R,NS]
I don't have a .htaccess file in the mylink2 folder, how do I create one?

I hope someone can help me with these issues as I would love this site to be an active link directory again

Cheers
Viv
#but dont know how #file #htaccess #should have
  • {{ DiscussionBoard.errors[613074].message }}
  • Profile picture of the author rafmandu
    Banned
    [DELETED]
    {{ DiscussionBoard.errors[619617].message }}
    • Profile picture of the author mistyone
      Originally Posted by rafmandu View Post

      Just a heads up, it's best to use notepad on the PC or Text Wrangler on the Mac or some other simple text editor like that rather than word to create the .htaccess file. Word tends to put a bunch of junk in the header of the file that may interfere with the functionality of the .htaccess file.
      Hi there

      Thanks for your advice. I had heard that and I do use notepad but I appreciate you making sure I know the best product to use

      This sort of response from you is what is so great about this forum. It is all about sharing and caring

      Cheers
      Viv
      {{ DiscussionBoard.errors[619870].message }}
  • Profile picture of the author erickz
    hmm.. i think by default when you create a wordpress blog, there should already be a .htaccess file in the root folder of your blog. this htaccess file will have some wordpress commands in it. pls check again.. if not, maybe you want to re install the WP blog again.
    you can edit this file thru the file manager in the control panel of your hosting provider.
    just name it .htaccess as the file name will do. using the notepad to edit will also do the job, just name it .htaccess and upload to the root directory.
    but there should already be one when you create a WP blog, unless it is a static site, then maybe you need to create one.
    hmm.. remember to tick the "Show Hidden Files (dotfiles)" check box in the file manager when you are viewing your files thru your control panel. these files are hidden files and you must tick to be able to view them!
    i have troubles finding this file too initially but saw the check box and figure it out!
    you should be able to locate the .htaccess file after this..
    {{ DiscussionBoard.errors[620191].message }}

Trending Topics