Jump to content

need some rewrite help


ballhogjoni

Recommended Posts

I am trying to make sef urls for my site. I think the problem is that I am on shared hosting and that the mod rewrite will only read the htaccess file for the main domain. I am a noob at this so I am probably wrong. The domain that I am trying to rewrite for is technically a subdomain of the main domain, but you can still reach the site by typing in http://subdomain.com. My problem is that I have some code and its not rewriting the urls.

 

Options +FollowSymLinks
Options +Indexes
RewriteEngine On
RewriteBase /
RewriteRule ^/category/(.*)\.html$ index.php?category=$1

 

Goal:

Change this url:

http://xxxxxxxxxxxxxx/xxxxxxxxxxxxxx/index.php?category=Regular

 

to this url:

 

http://xxxxxxxxxxxxxx/xxxxxxxxxxxxxx/Regular.html or something like that.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.