Jump to content

Recommended Posts

hey i have a jump menu that when i select an option it filters a table. My problem is that i have a .htaccess file in place to rewrite the urls but when i select my option i get a 404 error.  I know this is something to do with my htaccess file not knowing what is going on so i am here asking for some help. I have posted some code snipets below:

My option code with a link to the url i want

 <option style="text-align:center;" value="<?php echo $row_config['website_url']; ?>content/<?php echo $_GET['id']; ?>/<?php echo $linkname ?>/filter/<?php echo $row_categories['cat_id']?>"><?php echo $row_categories['cat_name']?></option>

 

my htaccess file

Options +FollowSymLinks
RewriteEngine on
RewriteRule ^content/([^/\.]+)/([^/\.]+)/?$ index.php?id=$1
RewriteRule ^content/filter/([^/\.]+)/([^/\.]+)/?$ index.php?cat_id=$1
RewriteRule ^articles/([^/\.]+)/([^/\.]+)/?$ articles.php?articles_id=$1
RewriteRule ^home/ index.php [L]

 

Dee

 

 

Link to comment
https://forums.phpfreaks.com/topic/229525-rewrite-urls-problem/
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.