homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

Apart from working on .htaccess and enabling mod rewrite
How do I change the links in the script?

5+ Year Member

Msg#: 3801507 posted 11:21 am on Dec 6, 2008 (gmt 0)

I am done with .htaccess file and have enabled mod_rewite.

I have understood what regular expressions are and how to create a rule.

Now I assume that I have to change the links in the script as well....(not sure though).

The links are dynamically generated. Each link opens up to a page where there are more links and those are also dynamically generated. And this goes on. Now this has become very confusing. How do I go about this?

Moreover, on each page, all the links are not related to a single php file. I mean the code to dispay the links at the different parts of a page does not belong to a single file......those are from separate files.....these files are 'included'. So do I need to change the links in each of these files?



WebmasterWorld Senior Member g1smd us a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

Msg#: 3801507 posted 12:37 pm on Dec 6, 2008 (gmt 0)

The URLs your visitors "see" are those in the links that they click on the pages of your site.

So yes, the links need to show the URL that you want the content to be known by.

The rules in ModRewrite simply take the URL request and translate it into where to get the content from within the server - without revealing what that location actually is.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved