Hey guys.
I need your help with mod rewriting
I'm trying to rewrite
http://site.com/#article
http://site.com/#comments
http://site.com/#movie
to
http://site.com/?id=article
http://site.com/?id=comments
http://site.com/?id=movie
Hey guys.
I need your help with mod rewriting
I'm trying to rewrite
http://site.com/#article
http://site.com/#comments
http://site.com/#movie
to
http://site.com/?id=article
http://site.com/?id=comments
http://site.com/?id=movie
@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/
I read it's not possible, is it?
@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
@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:
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.
@s0wh4t
I've got 3 tabs with Jquery.
You never mention this at the beginning.
I assume something similiar to this
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.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.