Recommended Answers

@s0wh4t

I need your help with mod rewriting

Read this and look at the examples and you will start to understand how to write that mod:

http://www.cyberdesignz.com/blog/website-design/url-rewriting-top-5-ways-of-php-url-rewriting/

Jump to Post

@s0wh4t

I've got 3 tabs with Jquery.

You never mention this at the beginning.

I assume something similiar to this

http://jqueryui.com/tabs/

it wont go there, just says at index page.

Jump to Post

All 7 Replies

I read it's not possible, is it?

Member Avatar

@s0wh4t

I read it's not possible, is it?

Did you actually read it closely?

Since you didn't understand what was in the link.

Then try this Mod Rewrite Generator:

http://www.generateit.net/mod-rewrite/

If you don't know how to used that either than I don't know what else to tell you.

Well...

RewriteEngine On
RewriteRule ^\?id\=comments$ /#comments [L]

should be ok? anyway, not working.

//EDIT
Anchor is not working

Member Avatar

@s0wh4t

should be ok? anyway, not working.

May I ask what is the issue?

You are getting close to the answer just missing some slashes.

It's not that hard to used the Mod Rewrite Generator

Did you try the link:

http://www.generateit.net/mod-rewrite/

For example:
I've got 3 tabs with Jquery.
index video comments

every tab runs as http://site.com/#index / #video / #comments
I'm trying to swap that # tag to ?id=

RewriteEngine On
RewriteRule ^\?id\=comments$ /#comments [L]

Does work except when, for example, i'm trying to access #comments tab via ?id=comments
it wont go there, just says at index page.

Member Avatar

@s0wh4t

I've got 3 tabs with Jquery.

You never mention this at the beginning.

I assume something similiar to this

http://jqueryui.com/tabs/

it wont go there, just says at index page.

That's Correct because it's the index page!

You can't used Jquery tabs as individual pages to Mod Rewrite because it's only 1 page!

The Mod Rewrite is for actually pages not sections. Jquery Tabs are sections! You can used it as a Menu tab or sections.

commented: Cheers mate +0
Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.