Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-27-2012, 12:07 AM   PM User | #1
Pezmo82
New Coder

 
Join Date: Jun 2012
Posts: 15
Thanks: 3
Thanked 0 Times in 0 Posts
Pezmo82 is an unknown quantity at this point
Question .htaccess redirect

Don't know if I'm in the right place here (apologies if I'm not).

I'm having some problems with rewriting a few URL's. I have a site that using spry accordions and I want to link directly to them using .htaccess
At the moment if you type domain.com/about it redirects via about.html page that has meta http-equiv="refresh" content="0; and then redirects to the correct accordion panel, But... when it loads the page the URL is domain.com/home?panel=2 but I want it to be domain.com/about.
I have tried different .htaccess rewrite generators to work this out but no luck they always go to the correct page but the first accordion.

So at the moment I have:
RewriteRule ^about/?$ redirects/about.html
which then redirects to the correct accordion but without the clean URL.

Cheers.
Pezmo82 is offline   Reply With Quote
Old 06-28-2012, 12:03 AM   PM User | #2
Pezmo82
New Coder

 
Join Date: Jun 2012
Posts: 15
Thanks: 3
Thanked 0 Times in 0 Posts
Pezmo82 is an unknown quantity at this point
Anyone?
Pezmo82 is offline   Reply With Quote
Reply

Bookmarks

Tags
htaccess, redirect, url

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:24 AM.


Advertisement
Log in to turn off these ads.